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.
This commit is contained in:
Mario Rodas 2019-12-01 16:20:00 -05:00
parent bb1013511e
commit c5733e7a09
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -98,6 +98,7 @@ let
export GOCACHE=$TMPDIR/go-cache
export GOPATH="$TMPDIR/go"
export GOSUMDB=off
export GOPROXY=file://${go-modules}
runHook postConfigure