mirror of
https://github.com/golang/go
synced 2024-11-18 19:44:46 -07:00
go.tools/dashboard/builder: rewrite sub-repo paths before 'go get' and 'go test'
The dashboard still uses the old "code.google.com/p/go.*" import paths. Rewrite them to the new "golang.org/x/*" before running 'go get' and 'go test'. Update golang/go#9079. LGTM=rsc R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/174740043
This commit is contained in:
parent
5ebbcd132f
commit
bdb10cf821
@ -581,6 +581,9 @@ func (b *Builder) buildSubrepo(goRoot, goPath, pkg, hash string) (string, error)
|
||||
env[i] = p + filepath.Join(goRoot, "bin") + sep + filepath.Join(goPath, "bin") + sep + e[len(p):]
|
||||
}
|
||||
|
||||
// HACK: check out to new sub-repo location instead of old location.
|
||||
pkg = strings.Replace(pkg, "code.google.com/p/go.", "golang.org/x/", 1)
|
||||
|
||||
// fetch package and dependencies
|
||||
var outbuf bytes.Buffer
|
||||
err := run(exec.Command(goTool, "get", "-d", pkg+"/..."), runEnv(env), allOutput(&outbuf), runDir(goPath))
|
||||
|
Loading…
Reference in New Issue
Block a user