question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't update dotbot

See original GitHub issue

This is probably a trivial problem, sorry for that. I can’t update dotbot following the instructions in the README. The current situation is:

~$ cd ~/dotfiles/dotbot
~/dotfiles/dotbot$ git status
HEAD detached at ef558f8 # This is the point when I first installed dotbot.

Now, the documentation says:

You can upgrade Dotbot at any point. If using a submodule, run git submodule update --remote dotbot

Indeed it seems to work:

~/dotfiles$ git submodule update --remote dotbot
Submodule path 'dotbot': checked out 'c29ba8d72224b545cbd7cf9446c3ed2ef13f8c24'
~/dotfiles$ cd dotbot
~/dotfiles/dotbot$ git show --summary
commit ef558f85d917c7d2fb52c17db10f0996ef92cb3f
Author: Anish Athalye <me@anishathalye.com>
Date:   Mon Mar 6 15:11:02 2017 -0500

    Update dates

That was actually the last commit. But when I run ./install che old version is checked out:

:~/dotfiles$ ./install
Submodule path 'dotbot': checked out 'ef558f85d917c7d2fb52c17db10f0996ef92cb3f'
[...]

~/dotfiles$ cd dotbot
:~/dotfiles/dotbot$ git status
HEAD detached at ef558f8

The same happens if I upgrade with git fetch && git checkout origin/master (the other method suggested in the README).

What causes this is the git submodule update --init --recursive "${DOTBOT_DIR}" line in dotbot/tools/git-submodule/install. Am I missing something? How am I supposed to do a persistent upgrade?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nagromccommented, Apr 19, 2017

It is a good idea to include this extra step into the documentation.

However, I think it is not a good idea to update Dotbot every time install is run. It should be up to the user.

But including an update script would make Dotbot easier to use for more users. I like the idea.

0reactions
anishathalyecommented, Apr 19, 2017

Hmm, I don’t really want an update script, because it’s pretty easy to update using git directly. Plus, I think it would be weird to have the the update script make a Git commit on its own (and if it didn’t, then the update would be reverted on the next ./install).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotbot should be able to automatically update any and all files ...
So yes I'd like it if I only ever had to add the file to my .dotfiles folder and commit it. I should...
Read more >
DotBot - Help Hub - Moz
In this guide you'll learn more about our crawler, Dotbot, which is used to crawl for the Moz Link Index that powers the...
Read more >
Attempting to install homebrew through dotfile install config
I got it working by creating a new .zsh file, making it an executable, and running the homebrew install command from within the...
Read more >
[1.48] dotbot 1.1 (simple text/file reader) - ComputerCraft
You cannot see the results of the poll until you have voted. Please login and cast your ... dotbot is a simple text/file...
Read more >
Web Crawler Access Detection - DotBot | Tenable®
Moz' 'DotBot' recently discovered and indexed web content available on this ... domain listings) in order to update their search results.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found