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í 9cf2a6a77f properly patch the linker when GOROOT is a symlink
Some Go version managers like github.com/voidint/g use GOROOT symlinks,
which silently broke the way we patch the linker via go build -overlay.

Reproduced the original crash via the following testscript:

    env GARBLE_CACHE=${WORK}/garble-cache
    symlink goroot -> /usr/lib/go
    env GOROOT=${WORK}/goroot
    exec garble run main.go

    -- main.go --
    package main

    import "fmt"

    func main() {
        fmt.Println("hello world")
    }

We don't commit this testscript given how it's an expensive test
and for a relatively rare edge case whose fix is now well documented.
Moreover, as GOTOOLCHAIN is now available, I expect version managers
for Go to fade away with time.

While here, remove a debugging 'exec cat' from a testscript.

Fixes #915.
6 days ago
..
asm.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
atomic.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
basic.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
cache.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
cgo.txtar avoid patching our reflect code into _cgo_gotypes.go 2 weeks ago
crossbuild.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
ctrlflow.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
debugdir.txtar refuse to delete unknown files with -debugdir 4 weeks ago
embed.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
goenv.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
gogarble.txtar clarify and test that runtime.GOROOT is not available 5 months ago
gotoolchain.txtar properly patch the linker when GOROOT is a symlink 6 days ago
goversion.txtar drop support for Go 1.23 3 weeks ago
help.txtar rely on `go build` stamping a version for local builds 3 weeks ago
implement.txtar hash structs via the bundled and altered typeutil.hash 3 months ago
imports.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
init.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
ldflags.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
linker.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
linkname.txtar add a testscript with the linknames that bytedance/sonic/loader has 2 weeks ago
linkname_forbid.txtar refuse to obfuscate bytedance/sonic/loader 2 weeks ago
list_error.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
literals.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
modinfo.txtar bump unsupportedGo to mark Go 1.24 as supported 3 months ago
plugin.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
position.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
reflect.txtar obfuscate all names used in reflection 5 months ago
reverse.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
run.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
seed-cache.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
seed.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
syntax.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
test.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
tiny.txtar drop Go 1.22 and require Go 1.23.0 or later (#876) 6 months ago
typeparams.txtar skip all type parameters in recordType 3 months ago