Skip to content

bootstrap: Reduce dependencies #145413

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joshtriplett
Copy link
Member

Eliminate the fd-lock dependency by using the new native locking in std.

Eliminate the xattr dependency by turning off a feature flag in tar, since
the tarballs that we extract with bootstrap don't need it.

@rustbot
Copy link
Collaborator

rustbot commented Aug 15, 2025

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 15, 2025
@rust-log-analyzer

This comment was marked as outdated.

@joshtriplett joshtriplett force-pushed the bootstrap-reduce-deps branch from 73fec3a to 669e750 Compare August 15, 2025 01:59
In the process, fix a race condition, by never truncating or writing to
the file unless we currently hold the lock.
Extracting the Rust tarballs doesn't require this.
@joshtriplett joshtriplett force-pushed the bootstrap-reduce-deps branch from 669e750 to 56b33cd Compare August 15, 2025 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants