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
x/tools/internal/imports: TestScanNestedModuleInLocalReplace and 3 more failing on Go tip #35505
Comments
I've tried to reproduce this locally but haven't had any success. It seems to have something to do with the builder configuration.
|
I was able to reproduce this locally. The test is setting up a workspace and running |
Like many x/tools tests, these run the go command, so |
OTOH, it's not uncommon for me to run something like |
(There are likely many tests in the standard library that need a similar fix.) |
Change https://golang.org/cl/206517 mentions this issue: |
…ch runtime.GOROOT Many tests in x/tools invoke the 'go' command found from $PATH. If that command does not match the 'go' command used to invoke 'go test', the result will be misleading. Instead of silently accepting the mismatched result, check the 'go' tool's self-reported GOROOT and reject it if it doesn't match the 'go' tool used to invoke 'go test'. That rejection will cause the x/tools tests to fail if x/tools is the main module. Updates golang/go#35505 Change-Id: I581906468ef736fad42a0164376a07f876907621 Reviewed-on: https://go-review.googlesource.com/c/tools/+/206517 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com>
Change https://golang.org/cl/206538 mentions this issue: |
From https://build.golang.org and https://go-review.googlesource.com/c/go/+/204830/4#message-7c1298f605c9bae9bf98fc61fbd88c2b029bdcb1:
https://build.golang.org/log/3a4fbffe75af5fddd26d444d1dd2af3d805edee6
/cc @heschik
The text was updated successfully, but these errors were encountered: