Skip to content

uv fails to sync remote package with local dependency #18675

@pswsm

Description

@pswsm

Summary

Explanation

I have a library that I use in several other packages, and mostly use it as a local dependency while developing on branches. However, recently on a new package I'm finding that while syncing a dependency from git that has the local one as another dependency it fails as follws:

$ uv sync
    Updated ssh://git@gitlab.local/proj/dep01.git (ff49cf978bff24c76f4afb32d8df09c712a6cfbb) # --> No dependency of loca package
    Updated ssh://git@gitlab.local/proj/dep02.git (30dcc71701572ccbe1c1dc02be61b53e01d1cde9) # --> Has dependency
    × Failed to download and build `fpga @ git+ssh://git@gitlab.local/proj/dep02.git@branch#subdirectory=../lib/fpga`
  ╰─▶ The source distribution `git+ssh://git@gitlab.local/proj/dep02.git@branch#subdirectory=../lib/fpga` has no subdirectory `../lib/fpga`

Expected behavior

uv sync resolves the dependency as local, instead of searching the remote.

Note: The mentioned library fpga is also a dependency of the current package where I'm adding dep02.

Structure

../
├─ lib/
│  ├─ fpga/
│  │  ├─ pyproject.toml
├─ dep01/
│  ├─ pyproject.toml
├─ dep02/
│  ├─ pyproject.toml
├─ cur_pkg/
│  ├─ pyproject.toml

I'm running uv sync inside cur_pkg. I can install fpga fine with uv pip.

Platform

Fedora 43

Version

uv 0.10.8

Python version

Python 3.13.9

Metadata

Metadata

Assignees

No one assigned

    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