Poetry can not resolve dependencies when priority = "explicit"
is set for a private package registry
#7988
-
Versions
Working 'pyproject.toml`[tool.poetry.dependencies]
foo = {version = "*", source = "gitlab-private-package-registry"}
bar = {version = "*", source = "gitlab-private-package-registry"}
[[tool.poetry.source]]
name = "gitlab-private-package-registry"
url = "https://gitlab.com/api/v4/projects/<MASKED>/packages/pypi/simple/"
default = false
secondary = true Broken
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
you didn't read the documentation about package sources that tells you this is working exactly as expected |
Beta Was this translation helpful? Give feedback.
-
that is how supplemental sources are supposed to work |
Beta Was this translation helpful? Give feedback.
-
Both of these issues are indeed not the intended behavior. I tried to write a test for the original issue, but I can't pinpoint the origin of the issue. I thought it would be in the solver, but the test passes: 2f7692b. Hypothesis: the code that is responsible for finding the sources for the packages in the resulting |
Beta Was this translation helpful? Give feedback.
-
I have solved the problem. I believe that in the 1.5 there are some resolving issues in rare edge cases. Since I have no idea about how to provide a reproducible sample with private Package Registries, and I have a workaround for the initial problem, consider this discussion as closed. |
Beta Was this translation helpful? Give feedback.
I have solved the problem.
The solution was to comment out all private packages except one, then run
poetry lock
. Then uncomment one more private package, runpoetry lock
. Repeat until all private packages will be uncommented again.I believe that in the 1.5 there are some resolving issues in rare edge cases.
Since I have no idea about how to provide a reproducible sample with private Package Registries, and I have a workaround for the initial problem, consider this discussion as closed.