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