aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/run/run.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-11-06 15:43:47 -0500
committerRuss Cox <rsc@golang.org>2017-11-07 01:50:16 +0000
commit36323e4313f281ef209055b279f449feb5fcfa39 (patch)
tree462d8ef5e4a9326e4118b9393856b2d553b49dba /src/cmd/go/internal/run/run.go
parent8ac93e669dd18a65dd8c1dce37a6492ca078ba7d (diff)
downloadgo-36323e4313f281ef209055b279f449feb5fcfa39.tar.gz
go-36323e4313f281ef209055b279f449feb5fcfa39.zip
cmd/go: accept relative -pkgdir argument
Fixes #21309. Change-Id: I8ff1b0f37e34a3a4e9f8448d66a64fe3863d081f Reviewed-on: https://go-review.googlesource.com/76250 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/run/run.go')
-rw-r--r--src/cmd/go/internal/run/run.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/go/internal/run/run.go b/src/cmd/go/internal/run/run.go
index d67f02ad10..ce24748f4e 100644
--- a/src/cmd/go/internal/run/run.go
+++ b/src/cmd/go/internal/run/run.go
@@ -52,8 +52,7 @@ func printStderr(args ...interface{}) (int, error) {
}
func runRun(cmd *base.Command, args []string) {
- work.InstrumentInit()
- work.BuildModeInit()
+ work.BuildInit()
var b work.Builder
b.Init()
b.Print = printStderr