-
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: 'go build' in module mode rebuilds vendored dependencies in GOROOT #27285
Comments
I think this is a duplicate of #26988. |
I thought #26998 was fixed by https://golang.org/cl/130138, although I see that the CL does not mention the issue. This should be fixed, but, in the meantime, don't use |
@gopherbot please file this for backport against 1.11. This is a regression. |
Backport issue(s) opened: #27389 (for 1.11). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Honestly I'm not sure it helps to file an issue for backport when we don't have a fix yet. |
@ianlancetaylor the point of opening a backport issue is that it will not get closed when a "Fixes" patch gets merged. We used to lose track of things that way. Opening it immediately avoids having to track an extra "should backport but don't have a fix yet" state separately, and having to take a GitHub action when it transitions to "it has a fix now" by a Gerrit action. releasebot pushes all CherryPickCandidate issues to the next minor release, so we don't even have to manage them, making them basically zero overhead. |
But the downside is that when we are looking at a minor release, we have to look at these issues again and again, each time going back to the original issue, and working out that it has not been fixed and there is nothing to backport. Since it is gopherbot that is closing the issues, we don't have to be hostage to it. I suggest that if gopherbot sees that the issue has a milestone of an earlier minor release, that the issue not be closed when the patch is committed to tip. |
@ianlancetaylor It's GitHub, not gopherbot, that closes issues when a patch is submitted to master. (gopherbot only takes care of merges to release branches.) The other issue is when something needs backport to two releases, which we also used to lose track of. It sounds like a gopherbot feature that only applies the CherryPickCandidate label when the main issue is closed would solve this? In any case, we are OT, so if you'd like to propose that or a different change, please open a separate issue. |
More details about this rebuilding issue at #27482. |
For anyone running into this issue, try the current master. Fixed in my case.
|
@godwhoa, I see traces there for |
|
Thanks! |
My first clue so far is that the effective I suspect that that results in different artifacts and/or different cache keys. |
(And I have a test case that replicates this.) |
* Run VP E2E tests in CI * Fix FSS not found bug * Use mount target in AD2 in FSS E2E * Use cloud-provider config in volume provisioner * Don't use go's -i flag anymore. See: golang/go#27285 * Use cloud-provider config in flexvolume driver
Change https://golang.org/cl/147443 mentions this issue: |
-i golang/go#27285 (comment)
more info: golang/go#27285 Signed-off-by: Andrew Seigner <[email protected]>
this flag is not needed for Go versions >=1.10 and creates problems while building. see golang/go#27285 (comment)
this flag is not needed for Go versions >=1.10 and creates problems while building. see golang/go#27285 (comment)
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Using the following
main.go
file:And the following commands:
I get:
What did you expect to see?
go build
shouldn't try to erase stuff shipped with Go. This only seems to happen for vendorized stuff. Non-vendorized stuff don't get compiled. Without-i
, this doesn't happen. The provided command is the one issued by a flycheck plugin for Emacs.The text was updated successfully, but these errors were encountered: