golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.22k stars 17.7k forks source link

cmd/go: fail go clean command when failed to find go cache directory #70392

Open mneverov opened 6 days ago

mneverov commented 6 days ago

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

gopherbot commented 6 days ago

This PR (HEAD: 69a6fb558ea53a77771d55323156597812ebb5f9) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596.

Important tips:

gopherbot commented 6 days ago

Message from Gopher Robot:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 6 days ago

Message from Max Neverov:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 6 days ago

Message from Max Neverov:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

Message from Jorropo:

Patch Set 1: Commit-Queue+1

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

Message from Jorropo:

Patch Set 2: -Commit-Queue


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 5 days ago

Message from Go LUCI:

Patch Set 2: LUCI-TryBot-Result+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 4 days ago

Message from Max Neverov:

Patch Set 2:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 4 days ago

Message from Jorropo:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 4 days ago

Message from Max Neverov:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 4 days ago

This PR (HEAD: f43af96ae3218e728b1ffdee5d998ad12c158efe) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596.

Important tips:

gopherbot commented 4 days ago

Message from Jorropo:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

This PR (HEAD: e0537d10883fd7a63603592ac1d136d41f761ec9) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596.

Important tips:

gopherbot commented 3 days ago

Message from Max Neverov:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

Message from Jorropo:

Patch Set 4: -Commit-Queue


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

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 gomote repro 8730905631194697569.

Additional links for debugging:


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 days ago

Message from Go LUCI:

Patch Set 4: LUCI-TryBot-Result-1


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

Message from Sam Thanawalla:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

This PR (HEAD: 0684661728c0e2abb4f43611ea532d3aa4890c95) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596.

Important tips:

gopherbot commented 1 day ago

Message from Max Neverov:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

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. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

Message from Jorropo:

Patch Set 5: -Commit-Queue


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

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 gomote repro 8730665570262035233.

Additional links for debugging:


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

Message from Go LUCI:

Patch Set 5: LUCI-TryBot-Result-1


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 1 day ago

Message from Sam Thanawalla:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!

gopherbot commented 23 hours ago

This PR (HEAD: f7f708e7b75310cef453e15f42de1746be30f23b) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/628596.

Important tips:

gopherbot commented 22 hours ago

Message from Max Neverov:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/628596. After addressing review feedback, remember to publish your drafts!