diff options
-rw-r--r-- | site/pastebin/inconsistent-hash-of-buildgomodule.org | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/site/pastebin/inconsistent-hash-of-buildgomodule.org b/site/pastebin/inconsistent-hash-of-buildgomodule.org index 2e83e0a..322cffe 100644 --- a/site/pastebin/inconsistent-hash-of-buildgomodule.org +++ b/site/pastebin/inconsistent-hash-of-buildgomodule.org @@ -1,8 +1,27 @@ #+TITLE: Inconsistent hash of buildGoModule 2019-06-08 Saturday 19:14 + +The [[https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438][commit that made this visible]]. +* Offending derivation: +[[https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15][Full source code on sr.ht]]: +#+BEGIN_SRC nix -n + terraform-godaddy = pkgs.buildGoModule rec { + name = "terraform-godaddy-${version}"; + version = "1.6.4"; + src = pkgs.fetchFromGitHub { + owner = "n3integration"; + repo = "terraform-godaddy"; + rev = "v${version}"; + sha256 = "00blqsan74s53dk9ab4hxi1kzxi46k57dr65dmbiradfa3yz3852"; + }; + modSha256 = "0p81wqw2n8vraxk20xwg717582ijwq2k7v5j3n13y4cd5bxd8hhz"; + postInstall = + "mv $out/bin/terraform-godaddy $out/bin/terraform-provider-godaddy"; + }; +#+END_SRC * Local build: #+BEGIN_SRC shell -n -$ nix-build -A tf +$ nix-build -A terraform-godaddy these derivations will be built: /nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv /nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv @@ -149,6 +168,7 @@ cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-g error: build of '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv' failed #+END_SRC * Build [[https://builds.sr.ht/~euandreh/job/67836#task-setup-0][on CI]]: +The =setup.sh= script contains a call to =nix-shell= which in turns build the same =terraform-godaddy= derivation: #+BEGIN_SRC shell -n + cd vps/ + ./scripts/ci/setup.sh |