diff options
author | Cody Hiar <cody@hiar.ca> | 2022-08-02 11:07:36 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2022-08-02 11:07:36 -0600 |
commit | 3c2cd351d49041373a74897472e905b38697489f (patch) | |
tree | 7b789ea95acc2cffcf96e5d40e59819bb2fca034 /doc/builders/fetchers.chapter.md | |
parent | 9c292dd02ee67c47b15789a5709d9a544ed392b7 (diff) | |
download | nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar.gz nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar.bz2 nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar.lz nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar.xz nixpkgs-3c2cd351d49041373a74897472e905b38697489f.tar.zst nixpkgs-3c2cd351d49041373a74897472e905b38697489f.zip |
Add example error message.
Diffstat (limited to 'doc/builders/fetchers.chapter.md')
-rw-r--r-- | doc/builders/fetchers.chapter.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/builders/fetchers.chapter.md b/doc/builders/fetchers.chapter.md index f4c81d4d269..947afe8e9fd 100644 --- a/doc/builders/fetchers.chapter.md +++ b/doc/builders/fetchers.chapter.md @@ -39,7 +39,11 @@ fetchurl { Use the resulting error message to determine the correct hash. -<error message here> +``` +error: hash mismatch in fixed-output derivation '/path/to/my.drv': + specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + got: sha256-RApQUm78dswhBLC/rfU9y0u6pSAzHceIJqgmetRD24E= +``` 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. |