mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
6536a93547
commit
1ebebf1cc1
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func runClean(ctx context.Context, cmd *base.Command, args []string) {
|
func runClean(ctx context.Context, cmd *base.Command, args []string) {
|
||||||
|
modload.InitWorkfile()
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
cacheFlag := ""
|
cacheFlag := ""
|
||||||
switch {
|
switch {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue