-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get "Did not find commit for refs/heads/master" when running ob init #1109
Comments
What's the output of You could try adding obelisk/lib/command/src/Obelisk/Command/Thunk.hs Lines 1144 to 1146 in 17d0277
It's definitely not present on v1.1.0.0 which is well over a year old.
Not sure how you're roping in an old If all else fails, bootstrap from a local checkout $ cd obelisk
$ nix-build -A command
<output-nix-store-path>
$ cd directory-where-you-ob-init
$ <output-nix-store-path>/bin/ob init -v |
Yeah it does seem like I am using an old version..
If I run the following commands I still end up with version 0.9.0.1
And the output of the last command is again
I am still somewhat of a Nix newbie, so I might very well be doing something wrong. |
I don't know much about flakes, but maybe your flake.lock file or whatsitcalled ended up pinning an old master at some point and it never got updated?
Same. However, that's 0.9.0.1 of
Not quite sure how that happens. Maybe you're calling the right ob, but it tries to handoff to what it thinks is the one on master but ends up getting an old version instead? Let's see what the
|
Thanks for helping out. I get the same results as your git commands. 135bfd7 everywhere. However, I noticed that the directories being created in this step Do you have stuff in the directory it says it clones to? |
I spoke too soon, it was just factored out into
IIRC all this use of temp dirs is bracketed so that they're cleaned up at the end or failure.
What if you call git inside your flake shell? And what if you call the command from the logs I'm suspecting something goes sideways with your git inside nix |
When I run
ob init
I get the following error message:I have tried installing both using the method mentioned in the README (nix-env) and using a flake, which is the method I would prefer.
I run my flake using
nix develop --impure
and I get dropped correctly into the devShell withob
available, butob init
fails.My flake looks like this:
I am on NixOS 24.11.
The text was updated successfully, but these errors were encountered: