-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working