You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Daniel Martí 4e97811a62 give a useful error for "garble build -tiny"
We've had confused users a handful of times by now.
And it's reasonable to expect flags to be after the command,
as that's how flags work for cmd/go itself.

I don't think we want to mix our flags with Go's,
or start accepting flags in either place.
Both seem like worse solutions long-term, as they can add confusion.

However, we can quickly give a useful hint when a flag is misplaced.
That should get new users unblocked without asking for help.

We use a regular expression for this purpose,
because it doesn't seem like a FlagSet supports what we need;
to detect whether an argument is one of our flags,
without actually applying its value to the flagset.
Our flagset would also error on Go's flags, which we don't want.
3 years ago
..
asm.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
basic.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
cgo.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
crossbuild.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
debugdir.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
embed.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
gogarble.txt ensure the runtime is built in a reproducible way 3 years ago
goversion.txt drop support for Go 1.16.x 4 years ago
help.txt give a useful error for "garble build -tiny" 3 years ago
implement.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
imports.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
init.txt drop support for Go 1.16.x 4 years ago
ldflags.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
linkname.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
literals.txt ensure the runtime is built in a reproducible way 3 years ago
modinfo.txt testdata: adjust for newer Go 1.18 tip version 3 years ago
plugin.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
position.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
reflect.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
reverse.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
runtime-related.txt Obfuscate more packages of the standard library (#312) 4 years ago
seed.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
syntax.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
test.txt drop support for Go 1.16.x 4 years ago
tiny.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago