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.
2 years ago
..
asm.txt
basic.txt
cgo.txt
crossbuild.txt
debugdir.txt
embed.txt
gogarble.txt
goversion.txt
help.txt
implement.txt
imports.txt work around a build cache regression in the previous commit 2 years ago
init.txt
ldflags.txt
linkname.txt
literals.txt
modinfo.txt
plugin.txt
position.txt
reflect.txt
reverse.txt
seed-cache.txt work around a build cache regression in the previous commit 2 years ago
seed.txt work around a build cache regression in the previous commit 2 years ago
syntax.txt
test.txt
tiny.txt