]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] debug/buildinfo: base64-encode test binaries
authorMichael Pratt <mpratt@google.com>
Thu, 20 Feb 2025 19:42:19 +0000 (14:42 -0500)
committerMichael Pratt <mpratt@google.com>
Wed, 26 Feb 2025 17:44:08 +0000 (09:44 -0800)
commite4ef83383eaf67a32efdba6a0f86af85b908782d
treeea659e4dee72be07028e8767f635170e5aefaed7
parent4e6d3468cca90ffcbd62a545c33d61806c438505
[release-branch.go1.24] debug/buildinfo: base64-encode test binaries

Overzealous security scanners don't like the Go 1.17 binary because they
think it has every 1.17 security vulnerability. base64-encode the binary
to hide from them.

I've also extended the instructions to make the binary easier to
reproduce.

Since we do the Go binary, we might as well do the C binary too, as it
apparently makes some virus scanners unhappy.

Fixes #71858.
For #71753.
For #71734.
For #71821.

Change-Id: I6a6a636cccbf5312522f52f27f74eded64048fb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/651175
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
(cherry picked from commit af00524a6c1660e6a66fd975921df40ac1c3a415)
Reviewed-on: https://go-review.googlesource.com/c/go/+/651235
src/debug/buildinfo/buildinfo_test.go
src/debug/buildinfo/testdata/go117 [deleted file]
src/debug/buildinfo/testdata/go117/README.md [new file with mode: 0644]
src/debug/buildinfo/testdata/go117/go.mod [new file with mode: 0644]
src/debug/buildinfo/testdata/go117/go117.base64 [new file with mode: 0644]
src/debug/buildinfo/testdata/go117/main.go [new file with mode: 0644]
src/debug/buildinfo/testdata/notgo [deleted file]
src/debug/buildinfo/testdata/notgo/README.md [new file with mode: 0644]
src/debug/buildinfo/testdata/notgo/main.c [new file with mode: 0644]
src/debug/buildinfo/testdata/notgo/notgo.base64 [new file with mode: 0644]