You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new conflicting depencies handling introduced in 0.5.3 is great. Able to solve several project challenges with it.
To enhance the feature I'd propose adding a --no-extra flag allowing a specific extra group to be excluded when used with --all-extras.
With the config below running uv sync --all-extras results in an error.
Resolved 3 packages in 1ms
error: extra `extra1`, extra `extra2` are incompatible with the declared conflicts: {`uv-conflicts[extra1]`, `uv-conflicts[extra2]`}
I'd propose one option for handling this to allow the user to specify which of the conflicting extras to exclude. The option for this syntax could be helpful when the project has many optional extras where specifying each individual could become a long chain.
uv sync --all-extras --no-extra extra2
Similar functionality already exists for dependency groups with uv sync --all-groups --no-groups <NO_GROUP> and this could behave in a similar manner for extras as well.
The new conflicting depencies handling introduced in 0.5.3 is great. Able to solve several project challenges with it.
To enhance the feature I'd propose adding a
--no-extra
flag allowing a specific extra group to be excluded when used with--all-extras
.With the config below running
uv sync --all-extras
results in an error.I'd propose one option for handling this to allow the user to specify which of the conflicting extras to exclude. The option for this syntax could be helpful when the project has many optional extras where specifying each individual could become a long chain.
uv sync --all-extras --no-extra extra2
Similar functionality already exists for dependency groups with
uv sync --all-groups --no-groups <NO_GROUP>
and this could behave in a similar manner for extras as well.The text was updated successfully, but these errors were encountered: