-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: fail go clean command when failed to find go cache directory #70392
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
Conversation
This PR (HEAD: 69a6fb5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Max Neverov: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Max Neverov: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 1: Commit-Queue+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-11-17T09:14:33Z","revision":"5ea8c7f7fd992cdeb1e882e9802691d9359a7a1d"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 1: LUCI-TryBot-Result-1 Copied votes on follow-up patch sets have been updated:
Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-11-17T09:21:18Z","revision":"2aa258edd49c59e5eb3606daf68e8fe71e715ada"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Max Neverov: Patch Set 2: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Max Neverov: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
This PR (HEAD: f43af96) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from Jorropo: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
This PR (HEAD: e0537d1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from Max Neverov: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 4: Code-Review+1 Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-11-18T19:02:38Z","revision":"4ee11b1d946106f1956ddbd9524d4e0d87db56b9"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/gotip-windows-386 has failed with summary (view all results):
Build or test failure, click here for results. To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Sam Thanawalla: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
This PR (HEAD: 0684661) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from Max Neverov: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 5: Code-Review+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-11-21T10:38:11Z","revision":"98d9ceeb6dc9250466c0dae622c66eabe580c1cc"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Jorropo: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 5: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results):
Build or test failure, click here for results. To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
This PR (HEAD: 957fd30) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from Sam Thanawalla: Patch Set 10: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from qiu laidongfeng2: Patch Set 10: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 10: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-01-25T08:18:17Z","revision":"a4fedf8f2a1bfa608dcc966ba9a85e7c814f9b48"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from qiu laidongfeng2: Patch Set 10: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 10: This CL has failed the run. Reason: Tryjob golang/try/gotip-linux-amd64-newinliner has failed with summary (view all results):
Build or test failure, click here for results. To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 10: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 10: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
This PR (HEAD: e2063d1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596. Important tips:
|
Message from f u: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from f u: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 11: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 11: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-03-19T14:25:27Z","revision":"1bb82e4a45abcec514735c33eb5b6df70b023104"} Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 11: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 11: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 11: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Go LUCI: Patch Set 11: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Message from Michael Matloob: Patch Set 11: Auto-Submit+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. |
Currently, if computing of the go cache directory fails it does not expose the error. Commands like go clean, exec, modindex that use go cache directory continue execution producing incorrect or no result. This patch adds an error to the return values such that it can be validated on call sites. It also introduces such validation in go clean -cache command to fail execution in case when error occurred. Fixes #69997 Change-Id: I53fd1ec67f0a6bd8a367e785dcb145a673c084dc GitHub-Last-Rev: e2063d1 GitHub-Pull-Request: #70392 Reviewed-on: https://go-review.googlesource.com/c/go/+/628596 Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Michael Matloob <matloob@golang.org>
This PR is being closed because golang.org/cl/628596 has been merged. |
Currently, if computing of the go cache directory fails it does not expose the error. Commands like go clean, exec, modindex that use go cache directory continue execution producing incorrect or no result. This patch adds an error to the return values such that it can be validated on call sites. It also introduces such validation in go clean -cache command to fail execution in case when error occurred.
Fixes #69997