Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/updatestd: skip TestBuildList in short mode
The 'go list -m all' command may use the internet if the module cache is incomplete. (It wouldn't do that if -mod=vendor were chosen either explicitly or implicitly, but that's not the case here as buildList uses -mod=readonly and thus ignores the vendor directory.) Since 'go test -short' is not expected to require internet access, test buildList only when -short is false. This was found by the new no-network check being implemented in LUCI. It wasn't reported by the no-network check in x/build because its implementation doesn't block internet access to $(go env GOPROXY). Change-Id: I62db17af35f9d734deb9027b6bedfa45f84a0954 Reviewed-on: https://go-review.googlesource.com/c/build/+/507475 Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
- Loading branch information