Fail if --project directory does not exist#17093
Closed
ddoemonn wants to merge 3 commits intoastral-sh:release/010from
Closed
Fail if --project directory does not exist#17093ddoemonn wants to merge 3 commits intoastral-sh:release/010from
--project directory does not exist#17093ddoemonn wants to merge 3 commits intoastral-sh:release/010from
Conversation
Member
|
This looks good to me but is a breaking change. It'd be good to add it as a warning first then make it fail in 0.10 |
--project directory does not exist
konstin
approved these changes
Jan 26, 2026
Member
|
Moving off the milestone as we need a version with a warning first. |
konstin
added a commit
that referenced
this pull request
Jan 27, 2026
konstin
pushed a commit
that referenced
this pull request
Jan 27, 2026
49db9df to
ad2a660
Compare
konstin
pushed a commit
that referenced
this pull request
Feb 4, 2026
konstin
added a commit
that referenced
this pull request
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #17087
When
--projectis specified with a non-existent path, uv now fails immediately with a clear error message instead of silently continuing and potentially discovering a different project.The fix validates that the provided
--projectpath exists and is a directory before proceeding with any command execution.Test Plan
run_project_not_foundandrun_project_is_file