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/script
Daniel Martí 79376a15f9 support computing missing pkgCache entries
Some users had been running into "cannot load cache entry" errors,
which could happen if garble's cache files in GOCACHE were removed
when Go's own cache files were not.

Now that we've moved to our own separate cache directory,
and that we've refactored the codebase to depend less on globals
and no longer assume that we're loading info for the current package,
we can now compute a pkgCache entry for a dependency if needed.

We add a pkgCache.CopyFrom method to be able to append map entries
from one pkgCache to another without needing an encoding/gob roundtrip.

We also add a parseFiles helper, since we now have three bits of code
which need to parse a list of Go files from disk.

Fixes #708.
3 years ago
..
asm.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
atomic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
basic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
cache.txtar support computing missing pkgCache entries 3 years ago
cgo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
crossbuild.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
debugdir.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
embed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
goenv.txtar drop support for Go 1.19 3 years ago
gogarble.txtar avoid go:linkname warnings when building on tip 3 years ago
goversion.txtar suggest a command when asking the user to rebuild garble 3 years ago
help.txtar adapt to tip's error message change from "GOROOT" to "std" 3 years ago
implement.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
imports.txtar use go:build in script/imports.txtar 3 years ago
init.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
ldflags.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
linker.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
linkname.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
list_error.txtar adapt to tip's error message change from "GOROOT" to "std" 3 years ago
literals.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
modinfo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
plugin.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
position.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
reflect.txtar rework reflection detection with ssa (#732) 3 years ago
reverse.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
run.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
seed-cache.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
seed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
syntax.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
test.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
tiny.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago
typeparams.txtar set testscript's RequireExplicitExec and RequireUniqueNames 3 years ago