Skip to content

UV_NO_DEFAULT_GROUPS with value other than true, false triggers an error #18002

@jnooree

Description

@jnooree

Summary

Minimal reproducible example:

uv init
UV_NO_DEFAULT_GROUPS=1 uv sync --verbose

Output:

error: invalid value '1' for '--no-default-groups'
  [possible values: true, false]

For more information, try '--help'.

It works with UV_NO_DEV, though.

uv init
UV_NO_DEV=1 uv sync --verbose

Output:

Using CPython 3.13.11
Creating virtual environment at: .venv
Resolved 1 package in 1ms
Audited in 0.01ms

Platform

Darwin 24.6.0 arm64 Darwin / Linux 5.15.0-164-generic x86_64 GNU/Linux

Version

uv 0.10.2 (Homebrew 2026-02-10) / uv 0.9.28 (Homebrew 2026-01-29)

Python version

N/A

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