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/mod
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
..
golang.org_x_text_v0.0.0-20170915032832-14c0d48ead0c.txt support building modules which require other modules 4 years ago
gopkg.in_garbletest.v2_v2.999.0.txt work around a build cache regression in the previous commit 2 years ago
rsc.io_quote_v1.5.2.txt support building modules which require other modules 4 years ago
rsc.io_sampler_v1.2.1.txt support building modules which require other modules 4 years ago
rsc.io_sampler_v1.3.0.txt work around a build cache regression in the previous commit 2 years ago
rsc.io_sampler_v1.99.99.txt work around a build cache regression in the previous commit 2 years ago
rsc.io_testonly_v1.0.0.txt drop support for Go 1.16.x 3 years ago