aboutsummaryrefslogtreecommitdiff
path: root/src/all.bash
AgeCommit message (Collapse)Author
2024-03-11all.bash: allow spaces in $GOTOOLDIR to print build infoJes Cok
For consistency with all.bat: "%GOTOOLDIR%/dist" banner Fixes #66061 Change-Id: I3387003a77a5fe82fe132e7aba472b06dd9068f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/570395 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-04-19make.{bash,bat}: check unmodified $PATH for $GOROOT/bin presenceDmitri Shuralyov
Previously, all.bash and all.bat restored the original $PATH before calling 'dist banner', so that it would do its job of checking whether the user still needs to add $GOROOT/bin to their $PATH. That worked for those scripts, but had no effect on make.bash nor make.bat. Instead of trying to extend that logic to more scripts, change the approach to provide dist an unmodified copy of $PATH via an internal to dist environment variable $DIST_UNMODIFIED_PATH. The make.bash and make.bat scripts happen to use dist env -p to modify $PATH, making it viable to add the internal variable there instead of in each script. It currently works by adding semicolon terminators to dist env output so that make.bash's 'eval $(dist env -p)' works as before but is able to export DIST_UNMODIFIED_PATH for following dist invocations to observe. Nothing needs to be done for Windows since its 'set ENV=val' format already has that effect. Plan 9 doesn't use the -p flag of dist env, and checks that GOROOT/bin is bound before /bin rather than looking at the $PATH env var like other OSes, so it may not have this bug. I don't have easy access to Plan 9 and haven't tried to confirm. Fixes #42563. Change-Id: I74691931167e974a930f7589d22a48bb6b931163 Reviewed-on: https://go-review.googlesource.com/c/go/+/485896 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2017-04-28Revert "build: fail nicely if somebody runs all.bash from a binary tarball ↵Brad Fitzpatrick
package" This reverts commit 3d86d45dd60358636c569e9cf06b23b5e0e04e8a. Reason for revert: Fixing a different way. See #20008. Change-Id: I6f4382ffdfff83a4504b013ba37100319b2c1aad Reviewed-on: https://go-review.googlesource.com/42138 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-26build: fail nicely if somebody runs all.bash from a binary tarball packageMostyn Bramley-Moore
Fixes golang/go#20008. Change-Id: I7a429490320595fc558a8c5e260ec41bc3a788e2 Reviewed-on: https://go-review.googlesource.com/41858 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2014-05-20build: make nacl passRuss Cox
Add nacl.bash, the NaCl version of all.bash. It's a separate script because it builds a variant of package syscall with a large zip file embedded in it, containing all the input files needed for tests. Disable various tests new since the last round, mostly the ones using os/exec. Fixes #7945. LGTM=dave R=golang-codereviews, remyoudompheng, dave, bradfitz CC=golang-codereviews https://golang.org/cl/100590044
2012-06-06build: restore PATH before "dist banner"Shenghou Ma
Fixes #3699. R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/6272048
2012-04-10build: run.bash no longer accepts --no-bannerShenghou Ma
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5986063
2012-02-13cmd/dist: cross-compiling fixesRuss Cox
This CL makes it possible to run make.bash with GOOS and GOARCH set to something other than the native host GOOS and GOARCH. As part of the CL, the tool directory moves from bin/tool/ to pkg/tool/goos_goarch where goos and goarch are the values for the host system (running the build), not the target. pkg/ is not technically appropriate, but C objects are there now tool (pkg/obj/) so this puts all the generated binaries in one place (rm -rf $GOROOT/pkg cleans everything). Including goos_goarch in the name allows different systems to share a single $GOROOT on a shared file system. Fixes #2920. R=golang-dev, r CC=golang-dev https://golang.org/cl/5645093
2012-02-04build: use cmd/distRuss Cox
R=bradfitz, ality, r, r, iant, mikioh.mikioh CC=golang-dev https://golang.org/cl/5615058
2010-08-24build: $GOBIN defaults to $GOROOT/binRuss Cox
R=r CC=golang-dev https://golang.org/cl/1982049
2010-08-18build: no required environment variablesRuss Cox
R=adg, r, PeterGo CC=golang-dev https://golang.org/cl/1942044
2010-03-31build script tweaksRuss Cox
factor out environment variable checks. infer $GOROOT etc during build if not set. it's still necessary to set them for yourself to use the standard Makefiles. when running all.bash, don't recompile all the go packages in run.bash, since make.bash already did. R=r CC=golang-dev https://golang.org/cl/609042
2010-01-25Remove top-level (src/) Makefile.Christopher Wedgwood
R=rsc, dho, r CC=golang-dev https://golang.org/cl/194045
2009-12-11Add a Makefile in place of all.bash. Update docs to reflectDevon H. O'Dell
this change. R=rsc CC=golang-dev https://golang.org/cl/171048
2009-11-14Build changes to support work on the BSDs.Devon H. O'Dell
This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc https://golang.org/cl/152138
2008-10-08split all.bash into make.bash and run.bashRuss Cox
R=r OCL=16720 CL=16728
2008-10-01add a script to build *everything*Russ Cox
R=r DELTA=41 (41 added, 0 deleted, 0 changed) OCL=16290 CL=16293