diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-04-28 15:05:36 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-28 22:26:38 +0000 |
| commit | 4badad8d477ffd7a6b762c35bc69aed82faface7 (patch) | |
| tree | 8c83a49fae5a1005d0b82267ee55b5f23686d7a6 /src/cmd/distpack | |
| parent | 3c46d8f5119475adbadb6141acd463b910c1747b (diff) | |
| download | go-4badad8d477ffd7a6b762c35bc69aed82faface7.tar.xz | |
cmd/distpack: remove internal/platform/zosarch.go
cmd/dist started generating that file in CL 483695.
Also rearrange the list of files to remove slightly to explain
better where they come from.
Fixes #59889
Change-Id: I062c858596d801157e0d943e4ba2761c0547ac3a
Reviewed-on: https://go-review.googlesource.com/c/go/+/490655
Auto-Submit: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/distpack')
| -rw-r--r-- | src/cmd/distpack/pack.go | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/cmd/distpack/pack.go b/src/cmd/distpack/pack.go index ffeb4a1611..55e07f88c3 100644 --- a/src/cmd/distpack/pack.go +++ b/src/cmd/distpack/pack.go @@ -5,16 +5,15 @@ // Distpack creates the tgz and zip files for a Go distribution. // It writes into GOROOT/pkg/distpack: // -// - a binary distribution (tgz or zip) for the current GOOS and GOARCH -// - a source distribution that is independent of GOOS/GOARCH -// - the module mod, info, and zip files for a distribution in module form -// (as used by GOTOOLCHAIN support in the go command). +// - a binary distribution (tgz or zip) for the current GOOS and GOARCH +// - a source distribution that is independent of GOOS/GOARCH +// - the module mod, info, and zip files for a distribution in module form +// (as used by GOTOOLCHAIN support in the go command). // // Distpack is typically invoked by the -distpack flag to make.bash. // A cross-compiled distribution for goos/goarch can be built using: // // GOOS=goos GOARCH=goarch ./make.bash -distpack -// package main import ( @@ -113,15 +112,21 @@ func main() { srcArch.Remove( "bin/**", "pkg/**", + // Generated during cmd/dist. See ../dist/build.go:/deptab. - "src/cmd/cgo/zdefaultcc.go", "src/cmd/go/internal/cfg/zdefaultcc.go", - "src/cmd/go/internal/cfg/zosarch.go", - "src/cmd/internal/objabi/zbootstrap.go", "src/go/build/zcgo.go", - "src/internal/buildcfg/zbootstrap.go", + "src/internal/platform/zosarch.go", "src/runtime/internal/sys/zversion.go", "src/time/tzdata/zzipdata.go", + + // Generated during cmd/dist by bootstrapBuildTools. + "src/cmd/cgo/zdefaultcc.go", + "src/cmd/internal/objabi/zbootstrap.go", + "src/internal/buildcfg/zbootstrap.go", + + // Generated by earlier versions of cmd/dist . + "src/cmd/go/internal/cfg/zosarch.go", ) srcArch.AddPrefix("go") testSrc(srcArch) |
