Skip to content

Direct dependency warning mentions --resolution lowest when using lowest-direct #13424

@nathanjmcdougall

Description

@nathanjmcdougall

Summary

This warning appears when failing to set lower bounds on dependencies:

warning: The direct dependency `click` is unpinned. Consider setting a lower bound when using `--resolution lowest` to avoid using outdated versions.

This occurs when using --resolution lowest-direct, which could be misleading since the message implies --resolution lowest is being used.

Simple reproducer

  1. uv init --lib
  2. Add an unpinned dep; e.g. dependencies = ["click"]
  3. Run uv export --resolution lowest-direct > requirements.txt

Platform

Windows 10 x86_64

Version

uv 0.7.3 (3c413f7 2025-05-07)

Python version

Python 3.13.2

Metadata

Metadata

Assignees

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