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

Work around COPY --link limitations by pre-creating full filesystem tree #521

Merged
merged 1 commit into from
Jun 13, 2024

Commits on Jun 13, 2024

  1. Work around COPY --link limitations by pre-creating full filesystem…

    … tree
    
    Without this, `COPY --link` insists on creating `/usr` and `/usr/local` for us, and does so with non-reproducible timestamps, defeating the purpose of our carefully crafted reproducible `/usr/local/go` -- this combats that by pre-creating a full `/target` directory that includes `/target/usr/local/go` so we can `COPY --link /target/ /` and get a *properly* reproducible layer.
    
    I've also added more sanity checks to validate our reproducibility assumptions (namely that our detected `SOURCE_DATE_EPOCH` value is older than our build/wall clock and that no files in our final tree are newer than our `SOURCE_DATE_EPOCH`).
    tianon committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    81c0d31 View commit details
    Browse the repository at this point in the history