Skip to content

go-build-wrapper: Ensure reproducible builds #448

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

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

Foxboron
Copy link
Collaborator

The go compiler embeds full paths to modules and dependencies into the
binary. This prevents people from reconstructing a bit-for-bit identical
toolbox binary without going through several hoops.

Without patch:

$ strings build/src/toolbox | grep "$HOME" | wc -l
105

With patch:

$ strings build/src/toolbox | grep "$HOME" | wc -l
0

Signed-off-by: Morten Linderud morten@linderud.pw

@softwarefactory-project-zuul
Copy link

Build failed.

Copy link
Member

@debarshiray debarshiray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! Ensuring that builds are reproducible is definitely a worthy goal.

@martymichal martymichal added this to the Stable 1.0 milestone Jul 7, 2020
The Go compiler embeds full paths to modules and dependencies into the
binary. This prevents people from reconstructing a bit-for-bit identical
toolbox binary without going through several hoops.

Without patch:

    $ strings build/src/toolbox | grep "$HOME" | wc -l
    105

With patch:

    $ strings build/src/toolbox | grep "$HOME" | wc -l
    0

containers#448

Signed-off-by: Morten Linderud <morten@linderud.pw>
@debarshiray debarshiray merged commit 0e5592b into containers:master Jul 7, 2020
@debarshiray
Copy link
Member

Thanks for your contribution, @Foxboron !

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.

4 participants