Skip to content

Commit

Permalink
buildGoModule: disable consult the checksum database on build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marsam committed Dec 1, 2019
1 parent bb10135 commit c5733e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/go-modules/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ let
export GOCACHE=$TMPDIR/go-cache
export GOPATH="$TMPDIR/go"
export GOSUMDB=off
export GOPROXY=file://${go-modules}
runHook postConfigure
Expand Down

0 comments on commit c5733e7

Please sign in to comment.