]> Cypherpunks repositories - gostls13.git/commit
cmd/go: when module enabled, `go clean` removes built binary
authorhitzhangjie <hit.zhangjie@gmail.com>
Wed, 21 Oct 2020 05:09:26 +0000 (05:09 +0000)
committerJay Conrod <jayconrod@google.com>
Thu, 22 Oct 2020 13:36:17 +0000 (13:36 +0000)
commit9c28a50fd18b2e69c43dec9b871e96bab6ec4ede
tree87d1728ac4ce5a1531a6df033cb9c02051e75343
parent3bac5faa4af2f5c454b2cebaa8be5cde9b8e2add
cmd/go: when module enabled, `go clean` removes built binary

Now "go clean" can remove binary as expected, when module enabled and the module name isn't  "main" or the name of folder.

Fixes issue #41656

Change-Id: I54b9435ece045e03a12dc230efe84c8dd381a07c
GitHub-Last-Rev: f4ea2d8c765a6e3a2b89fe2c9fb5b2c80551efa5
GitHub-Pull-Request: golang/go#41999
Reviewed-on: https://go-review.googlesource.com/c/go/+/262677
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/clean/clean.go
src/cmd/go/testdata/script/clean_binary.txt [new file with mode: 0644]