diff options
Diffstat (limited to '_pastebins/inconsistent-hash-of-buildgomodule.md')
-rw-r--r-- | _pastebins/inconsistent-hash-of-buildgomodule.md | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/_pastebins/inconsistent-hash-of-buildgomodule.md b/_pastebins/inconsistent-hash-of-buildgomodule.md index 87663c5..a15033d 100644 --- a/_pastebins/inconsistent-hash-of-buildgomodule.md +++ b/_pastebins/inconsistent-hash-of-buildgomodule.md @@ -2,19 +2,17 @@ title: Inconsistent hash of buildGoModule date: 2019-06-08 layout: pastebin +lang: en --- [FIXED](https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2). -The [commit that made this -visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438). +The [commit that made this visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438). -Offending derivation: -===================== +# Offending derivation: -[Full source code on -sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15): +[Full source code on sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15): -``` {.nix .numberLines startFrom=""} +```nix terraform-godaddy = pkgs.buildGoModule rec { name = "terraform-godaddy-${version}"; version = "1.6.4"; @@ -30,10 +28,9 @@ terraform-godaddy = pkgs.buildGoModule rec { }; ``` -Local build: -============ +# Local build: -``` {.shell .numberLines startFrom=""} +```shell $ nix-build -A terraform-godaddy these derivations will be built: /nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv @@ -181,15 +178,14 @@ cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-g error: build of '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv' failed ``` -Build [on CI](https://builds.sr.ht/~euandreh/job/67836#task-setup-0): -===================================================================== +# Build [on CI](https://builds.sr.ht/~euandreh/job/67836#task-setup-0): The `setup.sh` script contains a call to `nix-shell` which in turns build the same `terraform-godaddy` derivation: -``` {.shell .numberLines startFrom=""} -+ cd vps/ -+ ./scripts/ci/setup.sh +```.shell +$ cd vps/ +$ ./scripts/ci/setup.sh warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring these derivations will be built: /nix/store/as9r3n55czsdiq82iacs0hq12alxb2m0-remove-references-to.drv |