// 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 (
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)