Skip to content

warning: Requirements file output.txt does not contain any dependencies when output file exists but is empty for uv pip compile --output-file #9410

@harupy

Description

@harupy

Command to reproduce the error:

% uv --version
uv 0.5.4 (c62c83c37 2024-11-20)

% echo '' > output.txt && echo 'scikit-learn==1.5.0' | uv pip compile --output-file output.txt -

Result:

warning: Requirements file output.txt does not contain any dependencies  👈 Is this expected?
Resolved 5 packages in 3ms
# This file was autogenerated by uv via the following command:
#    uv pip compile --output-file output.txt -
joblib==1.4.2
    # via scikit-learn
numpy==2.0.2
    # via
    #   scikit-learn
    #   scipy
scikit-learn==1.5.0
scipy==1.13.1
    # via scikit-learn
threadpoolctl==3.5.0
    # via scikit-learn

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