mirror of
https://github.com/astral-sh/uv.git
synced 2026-06-23 00:41:23 -04:00
6e928c0f3b
## Summary Prior to this change, `--exclude-newer` and `UV_EXCLUDE_NEWER` accepted only a date or duration. This meant a cutoff configured in `pyproject.toml` or `uv.toml` could be replaced with another cutoff, but could not be disabled from a higher-priority CLI or environment setting. This treats the global setting as an explicit enabled-or-disabled override until configuration precedence has been resolved. `--exclude-newer false`, `UV_EXCLUDE_NEWER=false`, and `exclude-newer = false` now remove the global cutoff while preserving package- and index-specific overrides. Tool receipts retain the disabled state, and the configuration schema and documentation reflect the new value. The regression coverage verifies CLI, environment, and TOML overrides and ensures the resulting lockfile omits the global `exclude-newer` option. Closes https://github.com/astral-sh/uv/issues/19929.