-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change git
inputs to use SRI hashes
#71
Comments
I like the idea if that improves the caching / substitution situation. Out of interest: Do you know the minimum Nix version required for these? We should probably also support migration of the hashes. At least only change "updated" hashes to not cause issues with "dormant" dependencies? (e.g. fetching huge repos again just for the sake of hashing) |
Between 2.3 and 2.4, it's in 2.4. I cannot find it in 2.3, at least, |
In addition, |
SRI hashes were added to Nix with NixOS/nix@6024dc1. That appears to have shipped in Nix 2.2. That commit changes the |
Currently npins uses legacy Nix base32 hashes for
fetchGit
. I would like to be able to passnarHash
tofetchGit
to get it to hit cache for any user connecting to the same the Nix store rather than just getting cached in the Nix git cache, but Nix only allows SRI hashes for that parameter.I think the easiest fix here is to make npins store SRIs for such hashes, since I don't think the base32 hashes could actually be used for any purpose in the current state anyway.
The text was updated successfully, but these errors were encountered: