nimble icon indicating copy to clipboard operation
nimble copied to clipboard

Cannot build project in git repo without HEAD

Open iacore opened this issue 2 years ago • 8 comments

Seems like newest nimble doesn't work for me.

How to reproduce:

> nimble --version
nimble v0.13.1 compiled at 2021-09-26 00:55:29
git hash: couldn't determine git hash
> nimble init test
...(press Enter for everything)...
> cd test
> nimble build
  Verifying dependencies for [email protected]
   Warning: Not removing temporary path because of debug verbosity: /tmp/nimble_40149
tables.nim(234)          raiseKeyError
Error: unhandled exception: key not found: url [KeyError]

iacore avatar Sep 26 '21 14:09 iacore

Strange. Can you try nimble refresh --debug?

dom96 avatar Sep 26 '21 22:09 dom96

This appears to be related to the new changes to Nimble. If you are on devel and using choosenim consider running choosenim stable.

dom96 avatar Oct 02 '21 14:10 dom96

CC @bobeff

dom96 avatar Oct 06 '21 09:10 dom96

@locriacyber Could you provide a minimal reproducible example, please?

bobeff avatar Oct 06 '21 14:10 bobeff

@locriacyber

git hash: couldn't determine git hash

This looks very strange.

bobeff avatar Oct 06 '21 14:10 bobeff

git hash: couldn't determine git hash

This looks very strange.

Nope, this is quite common, it happens if Nimble is built inside a checkout that wasn't cloned via git.

dom96 avatar Oct 06 '21 22:10 dom96

It's fixed, somehow.

iacore avatar Sep 01 '22 14:09 iacore

This happens in git repository without any commits. So, if you git init, you cant build your project untill you make initial commit.

SolitudeSF avatar Sep 01 '22 15:09 SolitudeSF