We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f3923 commit 513628fCopy full SHA for 513628f
src/cargo/util/context/mod.rs
@@ -1681,10 +1681,12 @@ impl GlobalContext {
1681
seen_dir.insert(config_root);
1682
}
1683
1684
+ let canonical_home = home.canonicalize().unwrap_or(home.to_path_buf());
1685
+
1686
// Once we're done, also be sure to walk the home directory even if it's not
1687
// in our history to be sure we pick up that standard location for
1688
// information.
- if !seen_dir.contains(home) {
1689
+ if !seen_dir.contains(&canonical_home) && !seen_dir.contains(home) {
1690
if let Some(path) = self.get_file_path(home, "config", true)? {
1691
walk(&path)?;
1692
0 commit comments