]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/clean: add logging to help debug openbsd flakes
authorMichael Matloob <matloob@golang.org>
Tue, 18 Mar 2025 17:00:42 +0000 (13:00 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 18 Mar 2025 18:22:30 +0000 (11:22 -0700)
commit6b18311bbc94864af48d10aad73fd4eb7ea0d9a1
tree4577680b7ea1f349d8a93f186444edd63af10c8f
parenta17c092c2c5e8ad45482ebbb9e17ef7f92edb96c
cmd/go/internal/clean: add logging to help debug openbsd flakes

This change adds extra logging in the case where there's an error
removing all the files in the gomodcache using modfetch.RemoveAll.
It logs the names of the files found in GOMODCACHE as well as their
modes. The modes are included because they should all be writable by the
time we call robustio.RemoveAll.

For #68087

Change-Id: Id9ae68bf6a3392baf88ec002d08fed1faf525927
Reviewed-on: https://go-review.googlesource.com/c/go/+/658816
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/clean/clean.go