From 46abdee40be23e637c514541394192b7fecc69c5 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 13 Nov 2019 23:00:00 -0500 Subject: [PATCH] buildGoPackage: disable module-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Go 1.13 slightly changed the behavior GO111MODULE=auto [1], which might accidentally cause the go command to build the module, for instance in the checkPhase: [GO111MODULE=auto] activates the module-aware mode of the go command whenever the current working directory contains, or is below a directory containing, a go.mod file — even if the current directory is within GOPATH/src. [1] https://golang.org/doc/go1.13#proxy-vars --- pkgs/development/go-packages/generic/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/go-packages/generic/default.nix b/pkgs/development/go-packages/generic/default.nix index b3386aaf24bf..03d777d5c880 100644 --- a/pkgs/development/go-packages/generic/default.nix +++ b/pkgs/development/go-packages/generic/default.nix @@ -84,6 +84,8 @@ let GOHOSTARCH = go.GOHOSTARCH or null; GOHOSTOS = go.GOHOSTOS or null; + GO111MODULE = "off"; + GOARM = toString (stdenv.lib.intersectLists [(stdenv.hostPlatform.parsed.cpu.version or "")] ["5" "6" "7"]); configurePhase = args.configurePhase or ''