]> Cypherpunks repositories - gostls13.git/commit
go/internal/srcimporter: set -mod=vendor before running tests
authorBryan C. Mills <bcmills@google.com>
Fri, 1 Mar 2019 14:23:44 +0000 (09:23 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 1 Mar 2019 17:21:57 +0000 (17:21 +0000)
commit7c388cc89c76bc7167287fb488afcaf5a4aa12bf
treebb9f676240e5f59e9b6fe7713aa91e720bd1aaf5
parent8eef74b493e48f3dfac6619b01ac7efe26c134b5
go/internal/srcimporter: set -mod=vendor before running tests

Otherwise, if the working directory is inside a standard-library
module, the test may try to fetch module contents from GOPROXY or
upstream.

Updates #26924
Updates #30228
Updates #30241

Change-Id: I4cb9a07721bd808fd094f7ed55a74cf7bce9cd6f
Reviewed-on: https://go-review.googlesource.com/c/164625
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/go/internal/srcimporter/srcimporter_test.go