]> Cypherpunks repositories - gostls13.git/commit
cmd/go: error on space-separated list with comma
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 27 Apr 2017 17:25:43 +0000 (18:25 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Apr 2017 19:08:35 +0000 (19:08 +0000)
commit16b6bb88ebfbd079a1d0b7c0cef80fa55eaf0211
tree514ccb64de2852c2d44dd7bdbc94f0ca6ba85f79
parent60db9fb6bccde26f5384978a3f64a6f409a515bc
cmd/go: error on space-separated list with comma

Using 'go build -tags "foo,bar"' might seem to work when you wanted
-tags "foo bar", since they make up a single tag that doesn't exist and
the build is unaffected.

Instead, error on any tag that contains a comma.

Fixes #18800.

Change-Id: I6641e03e2ae121c8878d6301c4311aef97026b73
Reviewed-on: https://go-review.googlesource.com/41951
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/build.go