Skip to content

Conversation

0xPoe
Copy link
Member

@0xPoe 0xPoe commented Oct 16, 2025

What does this PR try to resolve?

close #16023

Improve the warning message for realtive install location.

How to test and review this PR?

Please check the unit test.

r?@ghost

pub fn resolve_root(flag: Option<&str>, gctx: &GlobalContext) -> CargoResult<Filesystem> {
let config_root = gctx.get_path("install.root")?;
let config_root = gctx
.get::<OptValue<ConfigRelativePath>>("install.root")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just FYI, this can be Option<ConfigRelativePath>>. We don't use the definition here, so this can be simplified.

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.

False positive "be sure to add .local/bin to your PATH" warning with relative install root

2 participants