Skip to content

Direct dependency is incorrectly treated as indirect dependency #7863

@konstin

Description

@konstin

We incorrectly treat numpy as a transitive instead of a direct dependency, which means we don't emit the correct diagnostic about a missing lower bound:

[project]
name = "dummy"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.9"
dependencies = [
  "numpy",
]

Relevant log line from RUST_LOG=uv=debug uv lock:

DEBUG Adding transitive dependency for dummy==0.1.0: numpy*

We need to change this check to consider workspace packages:

if let Some(for_package) = for_package {

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions