-
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: fail go clean command when failed to find go cache directory #70392
base: master
Are you sure you want to change the base?
Conversation
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 golang#69997
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. |
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