-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: vendor directory in src/cmd breaks build in module mode #26924
Comments
Does this also apply to the top-level
results in:
Or would you prefer this as a separate issue? |
It's basically the same. It can be this issue too. |
Hmm, this might be the same underlying cause as the failure @cespare observed in #26996 (comment). |
Change https://golang.org/cl/162989 mentions this issue: |
In CL 149609, a file was added to src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/patch.go to override the behavior of the V flag for cmd/vet. That modification causes the behavior of cmd/vet to change when a pristine copy of x/tools is vendored in, and module-mode vendoring will only support pristine copies (see golang/go#30240). Instead, allow cmd/vet to override the V flag by defining its own V flag before it invokes unitchecker.Main. Tested manually (by patching into cmd/vendor). Updates golang/go#30240 Updates golang/go#30241 Updates golang/go#26924 Updates golang/go#30228 Change-Id: I10e4523e1f4ede94fbfc745012dadeefef48e927 Reviewed-on: https://go-review.googlesource.com/c/162989 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Alan Donovan <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
Change https://golang.org/cl/162990 mentions this issue: |
x/sys/unix is vendored into the standard library, and the commit hook for the standard library requires files to be gofmt-clean. Updates golang/go#26924 Change-Id: I22a994062bcdbebe8a1fe1ae0ed4606837f03079 Reviewed-on: https://go-review.googlesource.com/c/162990 Reviewed-by: Brad Fitzpatrick <[email protected]>
Change https://golang.org/cl/163520 mentions this issue: |
This should help to catch any regressions in the course of implementing #26924. Updates #26924 Change-Id: Ide28a9aa0235867e0ce72f855fbed51c50e2c2f2 Reviewed-on: https://go-review.googlesource.com/c/163520 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
Change https://golang.org/cl/164621 mentions this issue: |
Change https://golang.org/cl/164625 mentions this issue: |
Otherwise, if the working directory is inside a standard-library module, the test may try to fetch module contents from GOPROXY or upstream. Updates #26924 Updates #30228 Updates #30241 Change-Id: I4cb9a07721bd808fd094f7ed55a74cf7bce9cd6f Reviewed-on: https://go-review.googlesource.com/c/164625 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
GOROOT/src/cmd's use of a nested vendor directory makes it not work with module mode.
We'll have to fix that at some point.
The text was updated successfully, but these errors were encountered: