]> Cypherpunks repositories - gostls13.git/commit
cmd/go: clean should respect workspaces
authorAdi Aloni <aaloni@redhat.com>
Mon, 23 Jun 2025 10:39:20 +0000 (13:39 +0300)
committerGopher Robot <gobot@golang.org>
Thu, 24 Jul 2025 16:01:23 +0000 (09:01 -0700)
commit1ebebf1cc1c91faa6e7c32bc987dd42f4f3da2e5
treea0c0e86549489618b95f7fa249f6be589c87fb00
parent6536a9354728523f7ac3627f558ba3f51163e72c
cmd/go: clean should respect workspaces

The existing implementation doesn't invoke modload.InitWorkfile during
runClean which in turn causes go clean to ignore workspaces and
consequentially workspace vendoring.

Fixes #74337

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