aboutsummaryrefslogtreecommitdiff
path: root/pastebins/inconsistent-hash-of-buildgomodule.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pastebins/inconsistent-hash-of-buildgomodule.md (renamed from site/pastebin/inconsistent-hash-of-buildgomodule.org)69
1 files changed, 40 insertions, 29 deletions
diff --git a/site/pastebin/inconsistent-hash-of-buildgomodule.org b/pastebins/inconsistent-hash-of-buildgomodule.md
index 2aa7d96..3cdc823 100644
--- a/site/pastebin/inconsistent-hash-of-buildgomodule.org
+++ b/pastebins/inconsistent-hash-of-buildgomodule.md
@@ -1,29 +1,35 @@
----
-title: Inconsistent hash of buildGoModule
-date: 2019-06-08
----
-[[https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2][FIXED]].
+--- title: Inconsistent hash of buildGoModule date: 2019-06-08 ---
+[FIXED](https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2).
-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";
+The [commit that made this
+visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438).
+
+Offending derivation:
+=====================
+
+[Full source code on
+sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15):
+
+``` {.nix .numberLines startFrom=""}
+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";
};
-#+END_SRC
-* Local build:
-#+BEGIN_SRC shell -n
+ modSha256 = "0p81wqw2n8vraxk20xwg717582ijwq2k7v5j3n13y4cd5bxd8hhz";
+ postInstall =
+ "mv $out/bin/terraform-godaddy $out/bin/terraform-provider-godaddy";
+};
+```
+
+Local build:
+============
+
+``` {.shell .numberLines startFrom=""}
$ nix-build -A terraform-godaddy
these derivations will be built:
/nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv
@@ -169,10 +175,15 @@ hash mismatch in fixed-output derivation '/nix/store/jgbfkhlsz6bmq724p5cqqcgfyc7
got: sha256:10n2dy7q9kk1ly58sw965n6qa8l0nffh8vyd1vslx0gdlyj25xxs
cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built
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
+```
+
+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
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
@@ -1030,4 +1041,4 @@ hash mismatch in fixed-output derivation '/nix/store/q8y0mzjl78hfhazjgq2sc84i7dp
cannot build derivation '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built
copying path '/nix/store/63gjp25l4cmdkl63zy0rcgmsvd2p2p34-terraform-0.11.14' from 'https://cache.nixos.org'...
error: build of '/nix/store/9drkn1qxkkcrz5g3413lpmbc2xysa582-terraform-0.11.14.drv', '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv' failed
-#+END_SRC
+```