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í b34a7e3926 avoid patching our reflect code into _cgo_gotypes.go
When obfuscating a main package whose Go files all import "C",
the first Go file in CompiledGoFiles ends up being _cgo_gotypes.go.
We cannot add our code from reflect_abi_code.go there,
as it leads to the following error about its _trieNode type:

    typecheck error: $WORK/b001/_cgo_gotypes.go:185:10: cannot define new methods on non-local type _trieNode

Avoid patching any _cgo_*.go file with our reflect code,
as all of those files are special glue code for cgo.

While here, tweak reflectMainPrePatch to return a string
for consistency with abiNamePatch.

Fixes #916.
10 months ago
..
asm.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
atomic.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
basic.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
cache.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
cgo.txtar avoid patching our reflect code into _cgo_gotypes.go 10 months ago
crossbuild.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
ctrlflow.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
debugdir.txtar refuse to delete unknown files with -debugdir 11 months ago
embed.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
goenv.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
gogarble.txtar clarify and test that runtime.GOROOT is not available 1 year ago
gotoolchain.txtar make gotoolchain.txtar upgrade to the host's GOVERSION 11 months ago
goversion.txtar drop support for Go 1.23 10 months ago
help.txtar rely on `go build` stamping a version for local builds 10 months ago
implement.txtar hash structs via the bundled and altered typeutil.hash 1 year ago
imports.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
init.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
ldflags.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
linker.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
linkname.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
list_error.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
literals.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
modinfo.txtar bump unsupportedGo to mark Go 1.24 as supported 1 year ago
plugin.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
position.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
reflect.txtar obfuscate all names used in reflection 1 year ago
reverse.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
run.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
seed-cache.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
seed.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
syntax.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
test.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
tiny.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 1 year ago
typeparams.txtar skip all type parameters in recordType 1 year ago