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í 8b55dd4bd2 work around a build cache regression in the previous commit
The added comment in main.go explains the situation in detail.
The added test is a minimization of the scenario, which failed:

        > cd mod1
        > garble -seed=${SEED1} build -v gopkg.in/garbletest.v2
        > cd ../mod2
        > garble -seed=${SEED1} build -v
        [stderr]
        test/main/mod2
        # test/main/mod2
        cannot load garble export file for gopkg.in/garbletest.v2: open […]/go-build/ed/[…]-garble-ZV[…]-d: no such file or directory

To work around the problem, we'll always add each package's
GarbleActionID to its build artifact, even when not using -seed.
This will get us the previous behavior with regards to the build cache,
meaning that we fix the recent regression.
The added variable doesn't make it to the final binary either.

While here, improve the cached file loading error's context,
and add an extra sanity check for duplicates on ListedPackages.
4 years ago
..
asm.txt CI: test on GOARCH=386 4 years ago
basic.txt fix binsubstr calls to not prepare for a regexp 4 years ago
cgo.txt stop loading obfuscated type information from deps 4 years ago
crossbuild.txt only list missing packages when obfuscating the runtime 4 years ago
debugdir.txt don't let -debug affect the build cache hashes 4 years ago
embed.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
gogarble.txt only list missing packages when obfuscating the runtime 4 years ago
goversion.txt drop support for Go 1.16.x 4 years ago
help.txt give a useful error for "garble build -tiny" 4 years ago
implement.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
imports.txt work around a build cache regression in the previous commit 4 years ago
init.txt drop support for Go 1.16.x 4 years ago
ldflags.txt add support for -ldflags using quotes 4 years ago
linkname.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
literals.txt support GOGARBLE=* with -literals again 4 years ago
modinfo.txt testdata: adjust for newer Go 1.18 tip version 4 years ago
plugin.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
position.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
reflect.txt stop loading obfuscated type information from deps 4 years ago
reverse.txt testdata: make pointer regexp less prone to flakes 4 years ago
seed-cache.txt work around a build cache regression in the previous commit 4 years ago
seed.txt work around a build cache regression in the previous commit 4 years ago
syntax.txt properly record when type aliases are embedded as fields 4 years ago
test.txt drop support for Go 1.16.x 4 years ago
tiny.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago