diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-11-13 23:00:00 -0500 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-12-10 18:50:44 +0100 |
commit | 46abdee40be23e637c514541394192b7fecc69c5 (patch) | |
tree | 7f1d0e8fae9626394d10a658f5090071b83c5aee /pkgs/development/go-packages | |
parent | 868972f2940a5f68fe3ef8b8464e311c1d80fd99 (diff) |
buildGoPackage: disable module-mode
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
Diffstat (limited to 'pkgs/development/go-packages')
-rw-r--r-- | pkgs/development/go-packages/generic/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/go-packages/generic/default.nix b/pkgs/development/go-packages/generic/default.nix index b3386aaf24bf2..03d777d5c8801 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 '' |