]> Cypherpunks repositories - gostls13.git/commit
go/build: bypass importGo if srcDir is in GOROOT/src
authorBryan C. Mills <bcmills@google.com>
Mon, 11 Mar 2019 21:25:09 +0000 (17:25 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 12 Mar 2019 05:00:20 +0000 (05:00 +0000)
commit9fedec79ed2da83fe33cad8e6cf6a28d23948f27
treec1fa11d87a535b0b9f0d898eb0e885c66d0ed289
parent8b2a2d03947453147e8dcbec50dfe33c19e5fa57
go/build: bypass importGo if srcDir is in GOROOT/src

This fixes the builder flake observed in
https://build.golang.org/log/84fe80f8f091b9cef639b3ae2422a673f1462810,
which could be replicated by running

GOPROXY=off GOPATH=$(mktemp -d) go test go/internal/srcimporter

Updates #30228
Fixes #30760

Change-Id: Ibf8b7a2e211611960b074b74af91acd4f0196edb
Reviewed-on: https://go-review.googlesource.com/c/go/+/166977
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/go/build/build.go