]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: fix GOSUMDB test failures
authorBryan C. Mills <bcmills@google.com>
Fri, 10 May 2019 19:26:56 +0000 (15:26 -0400)
committerBryan C. Mills <bcmills@google.com>
Mon, 13 May 2019 17:15:46 +0000 (17:15 +0000)
commit5f320f962bd79120f542315c8317f3469c47cee3
tree9bab101bac2a3918191515791d1b450e70aa5a5d
parentdb2bf154cc06fe67c79164f225592b06660fa02c
cmd/go/internal/modfetch: fix GOSUMDB test failures

Use cfg.GOSUMDB consistently instead of re-resolving it from the environment.

Set cfg.GOSUMDB to 'off' explicitly in coderepo_test, since it may
include modules that cannot be fetched using a released version of the
'go' command.

Fixes #31964

Change-Id: I17cae9e0c6aa1168ba534e6da4e3652800ac81e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/176538
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/internal/modfetch/sumdb.go