-
Notifications
You must be signed in to change notification settings - Fork 2.9k
uv build in a workspace: output directory is weird/inconsistent #13914
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
I have a workspace with:
- a package at top level
- a sub-package under
./testing
When building is run at top level:
uv buildbuilds the top-level package, output in./dist, akarepo/distuv build testingbuilds the sub-package, output in./dist, akarepo/distuv build testing/builds the sub-package, output in./testing/dist, akarepo/testing/dist
The difference between the last two is kinda weird.
Likewise, when building in the subdirectory:
uv buildbuilds the sub-package, output in../dist, akarepo/distuv build .builds the sub-package, output in../dist, akarepo/distuv build ./builds the sub-package, output in./dist, akarepo/testing/dist
Could it be that uv treats an arg as a name and arg/ as a location?
(note that in my case, the subdirectory name doesn't match the package name, so that's probably not the case).
For the subdirectory case, I'm not even sure what the correct behaviour should be.
../dist suggests that uv groks that this is a workspace... or maybe it's a bug?
./dist is backwards-compatible... though one may argue that it's against workspace ethos?
Finally:
uv build --allat top-level builds all packages with output in./distakarepo/dist
Platform
macos
Version
uv 0.7.12 (Homebrew 2025-06-06)
Python version
any
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working