fetchGit
input with ref
and narHash
specified, is now considered unlocked.
#12027
Labels
fetchGit
input with ref
and narHash
specified, is now considered unlocked.
#12027
We have been using
builtins.fetchGit
to automatically fetch sources for our company libraries (we usedfetchGit
instead offetchFromGitLab
due to the former taking advantage of user repo access permissions, not sure if this has since changed).This used to look like this:
This worked fine with nix
2.18
but after updating to nix2.24
this is no longer accepted,nix errors with:
It seems that nix now considers only inputs that specify
rev
as locked. Is this intended? The change was made hereI would expect that specifying the
narHash
is enough, this is the case for other fetchers.Missing this functionality is especially annoying because we could previously just set the
hash
argument to""
and nix would auto-fetch and report the proper hash, so modifying our manifest was easy. If we are forced to userev
this means that we have to go through all previous libraries and legacy versions (~50) and retrieve the proper rev.The text was updated successfully, but these errors were encountered: