Cannot build project in git repo without HEAD
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]
Strange. Can you try nimble refresh --debug?
This appears to be related to the new changes to Nimble. If you are on devel and using choosenim consider running choosenim stable.
CC @bobeff
@locriacyber Could you provide a minimal reproducible example, please?
@locriacyber
git hash: couldn't determine git hash
This looks very strange.
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.
It's fixed, somehow.
This happens in git repository without any commits. So, if you git init, you cant build your project untill you make initial commit.