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.

@0xPoe 0xPoe force-pushed the poe-patch-install.root branch from 02a2a2d to f51943b Compare October 27, 2025 19:44
@0xPoe 0xPoe force-pushed the poe-patch-install.root branch 2 times, most recently from daf3b81 to 9e4b6b4 Compare October 27, 2025 20:06
@0xPoe 0xPoe force-pushed the poe-patch-install.root branch from ce3da9f to 79e2090 Compare October 27, 2025 20:55
@0xPoe 0xPoe force-pushed the poe-patch-install.root branch from 799ae1f to c8a79f1 Compare October 27, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

3 participants