-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
runtime: runtime_test execution of nm uses system go, not go in tree #7089
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Even when you set the GOROOT, I think it's still finding your system-wide "go" 1.2 binary, but "go tool nm" is then respecting Go 1.2. All of our tests that exec.LookPath("go") should probably use the locally-built go binary instead of whatever old thing is on the system. It's more than just the runtime package, IIRC. runtime/race, runtime/pprof, os/signal, crypto/x509, ... |
I would say you should put your development tree in your path ahead of other things if you are going to run tests by hand. all.bash works, so this is purely about local development. We could work to change tests to invoke the right "go", but the assumption is going to creep back in, because nearly everyone working on Go already does put their development bin directory ahead of the system bins. It's fine to change existing tests if you'd like not to do this for some reason, but you'll probably have to keep fixing them as new ones crop up. Labels changed: added release-none. Status changed to Accepted. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
The text was updated successfully, but these errors were encountered: