Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/packages: add GOROOT env to avoid TestTarget failure in OpenBSD
Fixes golang/go#70891, 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.
- Loading branch information