Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: make go buildid static #2140

Merged
merged 1 commit into from
Sep 1, 2024
Merged

build: make go buildid static #2140

merged 1 commit into from
Sep 1, 2024

Conversation

ucwong
Copy link
Member

@ucwong ucwong commented Sep 1, 2024

No description provided.

The previous clearing of buildid did fully work, turns out we need to
set it in `ldflags`

The go buildid is the only remaining hurdle for reproducible builds, see
ethereum/go-ethereum#28987 (comment)

This PR changes the go build id application note to say literally `none`

golang/go#33772 (comment):

> This difference is due to the .note.go.buildid section added by the
linker. It can be set to something static e.g. -ldflags=-buildid= (empty
string) to gain reproducibility.
@ucwong ucwong marked this pull request as ready for review September 1, 2024 09:28
@ucwong ucwong merged commit ab4756f into master Sep 1, 2024
1 check passed
Copy link

codecov bot commented Sep 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.12%. Comparing base (9674127) to head (37effed).
Report is 240 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2140      +/-   ##
==========================================
- Coverage   47.23%   47.12%   -0.11%     
==========================================
  Files         558      562       +4     
  Lines       67177    67355     +178     
==========================================
+ Hits        31730    31744      +14     
- Misses      33056    33219     +163     
- Partials     2391     2392       +1     

see 12 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants