diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-12-01 16:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-12-01 16:20:00 -0500 |
commit | c5733e7a0933b62144e17947176ebd2e871b4616 (patch) | |
tree | ae285a6c0c9363fd22ead030caeb6380f46dc68e /pkgs/development/go-modules | |
parent | bb1013511e1e5edcf314df8321acf2f3c536df0d (diff) | |
download | nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar.gz nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar.bz2 nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar.lz nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar.xz nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.tar.zst nixpkgs-c5733e7a0933b62144e17947176ebd2e871b4616.zip |
buildGoModule: disable consult the checksum database on build
Since Go 1.13, `GOSUMDB` defaults to "sum.golang.org", to consult the checksum database of the main module's go.sum. We already use the default behavior when building `go-modules`, but Go tries to consult the checksum database again when building the module, and fails because since it requires `cacert` and `git` which are not propagated when building the package.
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 9adebe51247..55eaca514da 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -98,6 +98,7 @@ let export GOCACHE=$TMPDIR/go-cache export GOPATH="$TMPDIR/go" + export GOSUMDB=off export GOPROXY=file://${go-modules} runHook postConfigure |