Commit ac39815
go/packages: add GOROOT env to avoid TestTarget failure in OpenBSD
When running tests in OpenBSD if 'go' is built with -trimpath,
the TestTarget will always fail. Because when invoked without
proper environments, 'go' itself fails to find the GOROOT path.
Fixes golang/go#70891
Change-Id: I829b77686ae24d869653365f3e44e457c76b46bb
GitHub-Last-Rev: 6e1311b
GitHub-Pull-Request: #552
Reviewed-on: https://go-review.googlesource.com/c/tools/+/637961
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Michael Matloob <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>1 parent 39e1a8c commit ac39815
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3339 | 3339 | | |
3340 | 3340 | | |
3341 | 3341 | | |
3342 | | - | |
| 3342 | + | |
3343 | 3343 | | |
3344 | 3344 | | |
3345 | 3345 | | |
| |||
0 commit comments