]> Cypherpunks repositories - gostls13.git/commit
go/importer,os/exec: use testenv.GoToolPath
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 10 Jan 2018 17:01:31 +0000 (17:01 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 10 Jan 2018 20:24:15 +0000 (20:24 +0000)
commitc203696aa5d11c05e66905526254ca39f8ad2fd2
tree659d1366d0d7baffc79bf01aa8519f19dd776f81
parentc5d744a4f6b12a858fe549ddafde7a5bb81c7082
go/importer,os/exec: use testenv.GoToolPath

These were the last two occurences of exec.Command("go", ...) in all of
std cmd. Checked with:

gogrep '$(f is(func))("go", $*_)' std cmd

Also changed lp_windows_test to use a test package name to avoid a
circular dependency, since internal/testenv imports os/exec.

Change-Id: I9a18948600dfecc8507ad76172e219e78b791ffd
Reviewed-on: https://go-review.googlesource.com/87200
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/importer/importer_test.go
src/os/exec/lp_windows_test.go