tree: b646b1788eeffb7418972b8dbbc1b44bc54683bd [path history] [tgz]
  1. go.mod
  2. go117.base64
  3. main.go
  4. README.md
src/debug/buildinfo/testdata/go117/README.md

go117.base64 is a base64-encoded Go 1.17 hello world binary used to test debug/buildinfo of pre-1.18 buildinfo encoding.

The binary is base64 encoded to hide it from security scanners that believe a Go 1.17 is inherently insecure.

Generate go117.base64 with:

$ GOTOOLCHAIN=go1.17 GOOS=linux GOARCH=amd64 go build -trimpath $ base64 go117 > go117.base64 $ rm go117

TODO(prattmic): Ideally this would be built on the fly to better cover all executable formats, but then we need a network connection to download an old Go toolchain.