Skip to content

copy rustlib sources instead of using symbolic links #127151

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

Closed
wants to merge 2 commits into from

Conversation

onur-ozkan
Copy link
Member

There are certain cases where we need to add things to the rustlib source paths in CI builders. When the rustlib sources are symbolically linked to /checkout, we can't make any modifications because /checkout is mounted as read-only in containers. This change updates the bootstrap to copy the rustlib directories instead of linking them, so we can put/link things into rustlib directories when needed.

r? @Kobzol (we talked about this already on Zulip, he knows the context)

Blocker for #122709

There are certain cases where we need to add things to the rustlib source
paths in CI builders. When the rustlib sources are symbolically linked to
`/checkout`, we can't make any modifications because `/checkout` is mounted
as read-only in containers.
This change updates the bootstrap to copy the rustlib directories instead of
linking them, so we can put/link things into rustlib directories when needed.

Signed-off-by: onur-ozkan <[email protected]>
@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 Jun 30, 2024
Comment on lines 1630 to 1631
// and also for translating the virtual `/rustc/$hash` back to the real
// directory (for running tests with `rust.remap-debuginfo = true`).
Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure if this is going to change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Future note for worst-case scenario: We can make this to use copying for CI environments and create symbolic links for non-CI environments.

@onur-ozkan
Copy link
Member Author

It seems like this isn't going to work..

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.

3 participants