Skip to content

Incorrect pip compile for git subdirectory dependency #13020

@bnaul

Description

@bnaul

Summary

Example requirements.in:

git+https://github.com/PrefectHQ/prefect.git#subdirectory=src/integrations/prefect-dask

Compiling gives a weird-looking relative reference for prefect that does not install correctly

➜ uv pip compile requirements.in | grep '^prefect'
Resolved 105 packages in 193ms
prefect @ ../../../@562b964535b46f586b9b12808462956ed2f90c5a
prefect-dask @ git+https://github.com/PrefectHQ/prefect.git@562b964535b46f586b9b12808462956ed2f90c5a#subdirectory=src/integrations/prefect-dask

The same thing happens if you declare prefect in requirements.in, but adding prefect as a git+ dependency does work.

Platform

MacOS 15 ARM64

Version

uv 0.6.14 (Homebrew 2025-04-09)

Python version

3.13.2, 3.10.16

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