I am encountering an issue while using a private Python package in a Dagger pipeline. The package is hosted on a private PyPI repository, and the error occurs when calling a Dagger method that uses this package.
In pyproject.toml, I have defined an [uv.tools.pip] section with extra-index-url pointing to our private PyPI repository:
[uv.tools.pip]
extra-index-url = "https://<private-repo-url>"
When I execute the Dagger pipeline, I see the following error:
× No solution found when resolving dependencies:
╰─▶ Because Library was not found in the package registry and your
project depends on Library, we can conclude that your
project's requirements are unsatisfiable.
I have verified that,
- The private PyPI repository is accessible from my machine.
- The package installs correctly using uv pip install.
- The pyproject.toml file includes the correct extra-index-url.
dagger version - v0.13.6