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í a144789910 only obfuscate literals in packages to obfuscate
Add a regression test in gogarble.txt,
as that test is already set up with packages to not obfuscate.

This bug manifested in the form of a build failure for GOOS=plan9
with -literals turned on:

	[...]/os/file_plan9.go:151:12: invalid operation: cannot call non-function append (variable of type bool)

In this case, the "os" package is not to be obfuscated,
but we would still obfuscate its literals as per the bug.

But, since the package's identifiers were not obfuscated,
names like "append" were not replaced as per ea2e0bdf71,
meaning that the shadowing would still affect us.

Fixes #417.
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 only obfuscate literals in packages to obfuscate 3 years ago
goversion.txt drop support for Go 1.16.x 3 years ago
help.txt always require one argument for "reverse" 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 3 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 deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago
modinfo.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 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) 3 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 3 years ago
tiny.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 3 years ago