Skip to content

Fix #278: find project config in parent directories from relative root#281

Open
blopker wants to merge 1 commit into
mainfrom
feature/fix-relative-path-finder
Open

Fix #278: find project config in parent directories from relative root#281
blopker wants to merge 1 commit into
mainfrom
feature/fix-relative-path-finder

Conversation

@blopker
Copy link
Copy Markdown
Owner

@blopker blopker commented May 27, 2026

find_project_config walked up via parent(), but a relative start dir (the CLI's default ".") dead-ends immediately since Path::new(".") .parent() is "" and "".parent() is None, so it only ever checked the cwd. Make the start dir absolute before walking. Use std::path::absolute rather than canonicalize to avoid resolving symlinks, keeping absolute inputs (e.g. an editor's workspace root) unchanged.

find_project_config walked up via parent(), but a relative start dir
(the CLI's default ".") dead-ends immediately since Path::new(".")
.parent() is "" and "".parent() is None, so it only ever checked the
cwd. Make the start dir absolute before walking. Use std::path::absolute
rather than canonicalize to avoid resolving symlinks, keeping absolute
inputs (e.g. an editor's workspace root) unchanged.
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.

1 participant