-
Notifications
You must be signed in to change notification settings - Fork 13.3k
add --remote-time
flag to curl for bootstrap
#111771
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
Conversation
r? @ozkanonur (rustbot has picked a reviewer for you, use r? to override) |
What is this script? Is there a reason for reproducible tarballs you're not just setting all times to the unix epoch or so? |
That's the script from Debian. I believe I need to re-phrase the commit message since I was just forwarding the potentially upstreamable patches there.
I think it's not setting the times to the Unix epoch because it differentiates different binaries used so that they will have a different timestamp. Debian uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
-R
flag was added to curl back in 2001. I think oldest curl version we are using is 7.29(released at 2013), so shipping this PR shouldn't cause any trouble on CI runners.
I believe I need to re-phrase the commit message since I was just forwarding the potentially upstreamable patches there.
Yes, please. The current commit message and description are not providing us with much assistance.
--remote-time
flag to curl for bootstrap
--remote-time
flag to curl for bootstrap--remote-time
flag to curl for bootstrap
e37d148
to
d646591
Compare
Thank you for the feedback! I have modified the commit message to (hopefully) reflect the changes better. |
I believe there are other curl commands we use, unless I'm forgetting, so we should try to update those too. |
... using server-reported timestamp. This allows us to track changes to the downloaded artifact more easily and in a more reproducible manner. Co-authored-by: Zixing Liu <[email protected]>
d646591
to
0d7d2ca
Compare
I have run an |
|
@bors r+ rollup |
…llaumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#111450 (Use `OpaqueTypeKey` in query response) - rust-lang#111726 (Migrate GUI colors test to original CSS color format) - rust-lang#111746 (Merge some query impl modules into one) - rust-lang#111765 (Migrate GUI colors test to original CSS color format) - rust-lang#111771 (add `--remote-time` flag to curl for bootstrap) r? `@ghost` `@rustbot` modify labels: rollup
This pull request sets the timestamp of the downloaded stage0 binary according to the server-reported timestamp (if possible).
This allows make_orig-dl_tarball.sh to be more reproducible on the filesystem.