Skip to content

UV 0.10.10 wouldn't work with --project pointing to a file, not a directory #18508

@Levelleor

Description

@Levelleor

Summary

I noticed this PR has been merged:
#17714

This fails our CI, where we run something like:
uv --project pyproject.toml sync
(the path is dynamically built via user-input)

Error I receive right now:

error: Project path pyproject.toml is not a directory

This used to work perfectly on uv 0.10.9. In fact, that's our current workaround for this. But the question is why would the PR be merged in that case?

The PR mentions:

Errors if --project points to a file, as this already errors on Linux.

However this worked on a ubuntu-based system just fine. I think this is a breaking change that shouldn't have been introduced. Is there a reason this was enforced?

Platform

ubuntu

Version

0.10.10

Python version

3.12.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions