]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/script: remove special-case escaping logic for $WORK
authorBryan C. Mills <bcmills@google.com>
Thu, 18 Aug 2022 17:54:43 +0000 (13:54 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 24 Oct 2022 21:18:16 +0000 (21:18 +0000)
commita971904e10c85e4aeb2cb6a3cf6d8efadc259fdc
tree343ac469e31cf9b6d2e38e91f99916b6139fa504
parent151668c694a15029db236976f06f18482859db61
cmd/go/internal/script: remove special-case escaping logic for $WORK

Previously, the script engine implicitly escaped the path in the
$WORK environment variable to be the literal string '$WORK', which
produces somewhat better error messages in case of failure.

However, for a general-purpose script engine that implicit behavior is
surprising, and it isn't really necessary.

For #27494.

Change-Id: Ic1d5b8801bbd068157315685539e7cc2795b3aa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/426854
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/script/cmds.go
src/cmd/go/internal/script/state.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/build_n_cgo.txt
src/cmd/go/testdata/script/build_relative_tmpdir.txt
src/cmd/go/testdata/script/cache_unix.txt
src/cmd/go/testdata/script/mod_empty_err.txt
src/cmd/go/testdata/script/mod_gobuild_import.txt
src/cmd/go/testdata/script/modfile_flag.txt