3
0
Fork 0
forked from mirrors/nixpkgs

Update doc/builders/fetchers.chapter.md

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
Cody Hiar 2022-08-02 10:51:09 -06:00 committed by GitHub
parent 0444078dab
commit 6d0bf6ae05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,9 @@ fetchurl {
};
```
Hash mismatches generate an error message containing the correct sha256.
Use the resulting error message to determine the correct hash.
<error message here>
A similar problem arises while testing changes to a fetcher's implementation. If the output of the derivation already exists in the Nix store, test failures can go undetected. The [`invalidateFetcherByDrvHash`](#tester-invalidateFetcherByDrvHash) function helps prevent reusing cached derivations.