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í e8e06f6ad6 support reverse on packages using cgo
The reverse feature relied on `GoFiles` from `go list`,
but that list may not be enough to typecheck a package:

	typecheck error: $WORK/main.go:3:15: undeclared name: longMain

`go help list` shows:

	GoFiles         []string   // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
	CgoFiles        []string   // .go source files that import "C"
	CompiledGoFiles []string   // .go files presented to compiler (when using -compiled)

In other words, to mimic the same list of Go files fed to the compiler,
we want CompiledGoFiles.

Note that, since the cgo files show up as generated files,
we currently do not support reversing their filenames.
That is left as a TODO for now.

Updates #555.
3 years ago
..
asm.txtar obfuscate Go names in asm header files 3 years ago
basic.txtar use -toolexec="garble toolexec" 3 years ago
cgo.txtar support reverse on packages using cgo 3 years ago
crossbuild.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
debugdir.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
embed.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
goenv.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
gogarble.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
goversion.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
help.txtar use -toolexec="garble toolexec" 3 years ago
implement.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
imports.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
init.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
ldflags.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
linkname.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
literals.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
modinfo.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
plugin.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
position.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
reflect.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
reverse.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
seed-cache.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
seed.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
syntax.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
test.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago
tiny.txtar use -toolexec="garble toolexec" 3 years ago
typeparams.txtar replace testdata/scripts/*.txt with testdata/script/*.txtar 3 years ago