New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using golang.org/dl/go1.12 with testscript #63
Comments
@mvdan - do you use I'm afraid I don't use it. Instead I have full installs and use process mount namespaces to flip between versions (largely to avoid any issues with binaries being called |
Hmm, I do use Perhaps a way to work around this would be to run testscript with an explicit |
With https://go.dev/doc/toolchain existing today, I think this problem is "solved" as long as GOTOOLCHAIN is forwarded into testscripts. We already have a bit of code that does this for other env vars, so we could add it there as well: go-internal/testscript/testscript.go Lines 457 to 470 in 2af95f2
|
Hi, I have go in my
$PATH
by symlinking to agolang.org/dl/go*
binary. The problem is, that binary seems to locate itself by using the home directory.The net result is that when I run this,
exec go build
doesn't work, because:... i.e, it thinks it isn't yet installed. Any tricks for working around this?
The text was updated successfully, but these errors were encountered: