]> Cypherpunks repositories - gostls13.git/commit
cmd/go: split quotes in GOFLAGS same as in other env vars
authorRuss Cox <rsc@golang.org>
Wed, 19 Oct 2022 13:20:21 +0000 (09:20 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 25 Oct 2022 16:47:27 +0000 (16:47 +0000)
commitddaa25b5dd5ec8d66712c12c2a1ef4f12c1b583b
tree5f77e3e29b83d61200c7361cd8cb812d7d9fb231
parent2d63305b8446c69d79730ff556385cabe09f54ec
cmd/go: split quotes in GOFLAGS same as in other env vars

GOFLAGS didn't split on quotes because no other env vars
(such as CC, CXX, ...) did either. This kept them all consistent.

CL 341936 changed everything but GOFLAGS, making them inconsistent.

Split GOFLAGS the same way as the other environment variables.

Fixes #26849.

Change-Id: I99bb450fe30cab949da48af133b6a36ff320532f
Reviewed-on: https://go-review.googlesource.com/c/go/+/443956
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/go/internal/base/goflags.go
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/goflags.txt