]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow arguments to 'go test' and 'go vet' to duplicate or override flags...
authorBryan C. Mills <bcmills@google.com>
Fri, 6 Dec 2019 18:43:23 +0000 (13:43 -0500)
committerBryan C. Mills <bcmills@google.com>
Wed, 11 Dec 2019 22:01:13 +0000 (22:01 +0000)
commita15b5d30925e7be1101d812311545afb82c45a68
treeeeaf4c863d6afb954e710acca45f967eb2d1f33b
parent1b1fbb3192984624871ab92518499d4bd6e6e65c
cmd/go: allow arguments to 'go test' and 'go vet' to duplicate or override flags from GOFLAGS

This is a minimal fix for Go 1.14, but this parsing logic is much too
complex and seems like it will cause more trouble going forward.

I intend to mail a followup change to refactor this logic for 1.15.

Updates #32471

Change-Id: I00ed07dcf3a23c9cd4ffa8cf764921fb5c18bcd6
Reviewed-on: https://go-review.googlesource.com/c/go/+/210940
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/test/testflag.go
src/cmd/go/internal/vet/vetflag.go
src/cmd/go/testdata/script/goflags.txt