mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
cmd/distpack: don't keep the pack tool
This was an oversight: the pack tool isn't actually used in builds. For #71867 Change-Id: Ib1f1cce0b574cf1d2c1002b2f2ab9ef9d750d0fb Reviewed-on: https://go-review.googlesource.com/c/go/+/677557 Reviewed-by: Michael Matloob <matloob@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
1947c4233a
commit
67f052121e
2 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ func main() {
|
|||
switch strings.TrimSuffix(path.Base(name), ".exe") {
|
||||
default:
|
||||
return false
|
||||
case "asm", "cgo", "compile", "cover", "link", "pack", "preprofile", "vet":
|
||||
case "asm", "cgo", "compile", "cover", "link", "preprofile", "vet":
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
|
|
@ -482,7 +482,7 @@ func (gcToolchain) pack(b *Builder, a *Action, afile string, ofiles []string) er
|
|||
p := a.Package
|
||||
sh := b.Shell(a)
|
||||
if cfg.BuildN || cfg.BuildX {
|
||||
cmdline := str.StringList(base.Tool("pack"), "r", absAfile, absOfiles)
|
||||
cmdline := str.StringList("go", "tool", "pack", "r", absAfile, absOfiles)
|
||||
sh.ShowCmd(p.Dir, "%s # internal", joinUnambiguously(cmdline))
|
||||
}
|
||||
if cfg.BuildN {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue