Skip to content

fix(install)!: install.root is now always config relative - #17784

Open
weihanglo wants to merge 2 commits into
rust-lang:masterfrom
weihanglo:install.root
Open

weihanglo wants to merge 2 commits into
rust-lang:masterfrom
weihanglo:install.root

Conversation

@weihanglo

Copy link
Copy Markdown
Member

What does this PR try to resolve?

Previously,
if install.root is a bare path without any path separator,
it is resolved relative to the current working directory.
Paths containing separators were already config-relative.

We started the future-incompatible warning since 1.93
(released in 2026-01-22 via #16125)
that the CWD-relative behavior will be removed.

With this PR,
the behavior switches over to the config relative path always.

Notes to reviewers

Found during https://github.com/rust-lang/cargo/pull/17751/changes#r4595301887

r? 0xPoe

Should we FCP this?


🤖 LLM involvement: Checked if the test coverage is good.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

Previously, 
if `install.root` is a bare path without any path separator,
it is resolved relative to the current working directory.
Paths containing separators were already config-relative.

We started the future-incompatible warning since 1.93
(released in 2026-01-22 via rust-lang#16125)
that the CWD-relative behavior will be removed.

With this PR,
the behavior switches over to the config relative path always.
@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This branch has not been deployed

No deployments
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants