Skip to content

hack(process/linux): enable RUSTUP_PERMIT_COPY_RENAME by default on CI - #5045

Merged
rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:hack/linux-docker-copy-rename-ci
Sep 2, 2026
Merged

hack(process/linux): enable RUSTUP_PERMIT_COPY_RENAME by default on CI#5045
rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:hack/linux-docker-copy-rename-ci

Conversation

@rami3l

@rami3l rami3l commented Sep 1, 2026

Copy link
Copy Markdown
Member

Addresses the concern raised in #5011 (comment). Mitigates:

Background

One of the many cases where OverlayFS can break rustup's transactional semantics is when rustup is used in a CI environment conveniently placed in Docker containers, where RUSTUP_PERMIT_COPY_RENAME=1 has been proven to be a viable workaround (#2949 (comment), dtolnay/rust-toolchain#177).

Proposed Solution

This PR automatically enables RUSTUP_PERMIT_COPY_RENAME when CI=1.

The rationale is that Linux CI machines are quite common and wasting some disk spaces there should be more or less acceptable as long as more CI workflows pass. Hopefully, by limiting the hack to CI machines, this won't have a surprisingly large burst ratio.

@rami3l
rami3l marked this pull request as ready for review September 1, 2026 16:39
Comment thread src/cli/self_update.rs Outdated
Comment thread src/process.rs
@ChrisDenton

Copy link
Copy Markdown
Member

We should also consider doing a similar thing for RUSTUP_HARDLINK_PROXIES on Windows. See #4291.

@rami3l
rami3l force-pushed the hack/linux-docker-copy-rename-ci branch from f9871e5 to 1707932 Compare September 2, 2026 07:39
@rami3l

rami3l commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

We should also consider doing a similar thing for RUSTUP_HARDLINK_PROXIES on Windows. See #4291.

@ChrisDenton Do you want me to do this in the same PR or in a subsequent one? It should be a good fit either way.

@rami3l
rami3l requested a review from ChrisDenton September 2, 2026 07:53

@ChrisDenton ChrisDenton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm fine with leaving it to a follow up.

View changes since this review

@rami3l
rami3l added this pull request to the merge queue Sep 2, 2026
Merged via the queue into rust-lang:main with commit 9d4d258 Sep 2, 2026
31 checks passed
@rami3l
rami3l deleted the hack/linux-docker-copy-rename-ci branch September 2, 2026 08:25
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.

2 participants