uv icon indicating copy to clipboard operation
uv copied to clipboard

`uv add` should assume `--dev` if in a virtual workspace root

Open charliermarsh opened this issue 1 year ago • 2 comments

I find it somewhat tedious that you have to add --dev:

❯ uv add flask
error: Found a virtual workspace root, but virtual projects do not support production dependencies (instead, use: `uv add --dev`)

charliermarsh avatar Aug 23 '24 04:08 charliermarsh

What do you think about suggesting to add the new dependency to a specific workspace member as another solution?

TomerBin avatar Aug 23 '24 09:08 TomerBin

This may not be applicable if we allow virtual projects.

zanieb avatar Aug 23 '24 13:08 zanieb

No longer relevant as of v0.4.0 -- these "virtual workspace roots" were deprecated. Instead, users can just omit [build-system], and uv will avoid building and installing it by default (but will still resolve and include its dependencies).

charliermarsh avatar Aug 28 '24 18:08 charliermarsh