aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorMax Neverov <neverov.max@gmail.com>2025-03-18 20:02:03 +0000
committerGopher Robot <gobot@golang.org>2025-03-20 09:05:13 -0700
commit665af869920432879629c1d64cf59f129942dcd6 (patch)
tree739db0ad2837503733928ab1c7b49c3f3bf8ec42 /src/os/exec
parent84e0061460d7c9a624a74e13f0212f443b079531 (diff)
downloadgo-665af869920432879629c1d64cf59f129942dcd6.tar.xz
cmd/go: fail go clean command when failed to find go cache directory
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: e2063d10db7bb969bcbc8993761e3b38bb420938 GitHub-Pull-Request: golang/go#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>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions