42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From 0ba747e6a4b251a0d9eed0cfd8f8c491bb508040 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
Date: Mon, 23 Nov 2020 19:22:04 +0000
|
|
Subject: [PATCH 7/9] exec.go: do not write linker flags into buildids
|
|
|
|
The flags can contain build-specific paths, breaking reproducibility.
|
|
|
|
To make this acceptable to upstream, we probably need to trim the flags,
|
|
removing those known to be buildhost-specific.
|
|
|
|
Upstream-Status: Inappropriate [needs upstream discussion]
|
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
---
|
|
src/cmd/go/internal/work/exec.go | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
|
|
index d83b31b..a646fbb 100644
|
|
--- a/src/cmd/go/internal/work/exec.go
|
|
+++ b/src/cmd/go/internal/work/exec.go
|
|
@@ -1312,7 +1312,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
|
|
}
|
|
|
|
// Toolchain-dependent configuration, shared with b.linkSharedActionID.
|
|
- b.printLinkerConfig(h, p)
|
|
+ //b.printLinkerConfig(h, p)
|
|
|
|
// Input files.
|
|
for _, a1 := range a.Deps {
|
|
@@ -1607,7 +1607,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
|
|
fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
|
|
|
|
// Toolchain-dependent configuration, shared with b.linkActionID.
|
|
- b.printLinkerConfig(h, nil)
|
|
+ //b.printLinkerConfig(h, nil)
|
|
|
|
// Input files.
|
|
for _, a1 := range a.Deps {
|
|
--
|
|
2.30.2
|
|
|