-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
narHash
in builtins.fetchGit
Replacement for NixOS#3216 which became obsolete after the fetchers-API was introduced which provides a `narHash`-argument for each fetcher which is a SRI-hash of a content-addressable path. However, the `fetchGit`-primop required some changes to work with it. To summarize, the following things changed: * The hash-mismatch error in `libfetchers` now returns `102` as exit code which is the default for those errors. * The `git`-fetcher computes an SRI-hash of the result for the hash-validation. * It's possible to specify an SRI-hash using the `narHash`-attribute in `builtins.fetchGit`. This is only allowed if a revision is specified.
- Loading branch information
Showing
4 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters