Unverified Commit ec2cb66c authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #301928 from nevivurn/feat/gomod-workvendor

 buildGoModule: vendorHash fixes for proxyVendor and Go 1.22
parents dc6d23fe f190aa84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ Many attributes [controlling the build phase](#variables-controlling-the-build-p
- [`patchFlags`](#var-stdenv-patchFlags)
- [`postPatch`](#var-stdenv-postPatch)
- [`preBuild`](#var-stdenv-preBuild)
- `env`: useful for passing down variables such as `GOWORK`.

To control test execution of the build derivation, the following attributes are of interest:

+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ buildGoModule rec {
    hash = "sha256-1hZ7yAKTvkk20ho+QOqFEtspBvFztAtfmITs2uxhdmQ=";
  };

  vendorHash = "sha256-d38s5sSvENIou+rlphXIrrOcGOdsvkNaMJlhiXVWN6c=";
  vendorHash = "sha256-DFssAic2YtXNH1Jm6zCDv1yPNz3YUXaFLs7j7rNHhlE=";

  proxyVendor = true;

+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ buildGoModule rec {

  vendorHash = "sha256-8YcJXvR0cdL9PlP74Qh6uN2XZoN16sz/yeeZlBsk5N8=";

  GOWORK = "off";
  env.GOWORK = "off";

  nativeBuildInputs = [
    installShellFiles
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ buildGoModule rec {
  };

  proxyVendor = true;
  vendorHash = "sha256-6cpHDwnxdc/9YPj77JVuT5ZDFjKkF6nBX4RgZr/9fFY=";
  vendorHash = "sha256-L8mDs9teQJW6P3dhKSLfzbpA7kzhJk61oR2q0ME+u0M=";

  # tests try to access the internet to scrape websites
  doCheck = false;
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ buildGoModule rec {
  };

  proxyVendor = true;
  vendorHash = "sha256-xNM4qmpv+wcoiGrQ585N3VoKW6tio0cdHmUHRl2Pvio=";
  vendorHash = "sha256-/qZB/GGEkoqRoNhEmZw9Q2lsUPZRg5/xVxWgdBZTMLk=";

  ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];

Loading