problem of resolving nested dependencies with private repositories #7813
Labels
kind/bug
Something isn't working as expected
status/needs-reproduction
Issue needs a minimal reproduction to be confirmed
status/triage
This issue needs to be triaged
-vvv
option) and have included the output below.Issue
problem of resolving nested dependencies with private repositories
My current project has a private dependency on my gitlab and the httpclient dependency itself has a dependency on the same gitlab (logger 1.0.0)
When running the poetry install command, the logger 1.4.0 package from PyPi is installed instead of mine.
current project with my default non functional configuration
package httpclient project with my default non functional configuration
After rereading the poetry documentation I tried to set the 'secondary' parameter of the 'private-libraries' source to false on the 'httpclient' package and in my current project.
poetry documentation on this parameter (according to the documentation, this should have fixed the problem but it didn't):
https://python-poetry.org/docs/repositories/#default-package-source
current project with secondary parameter set to false
package httpclient project with secondary parameter set to false
I was able to solve the problem by setting this source to default in my current project and in the httpclient library, but the documentation specifies that setting a source to 'default', disables the default pypi source.
poetry documentation on this parameter:
https://python-poetry.org/docs/repositories/#default-package-source
Despite what the documentation says, the packages coming from pypi are well resolved and my packages even if they have the same name as a package coming from pypi are installed in priority.
So my private package logger 1.0.0 (dependence of the package httpclient) is well installed instead of the one from pypi.
This behavior is surprising and contrary to the configuration explained in the official documentation.
current project with private source as default (functional)
package httpclient project with private source as default (functional)
Is it a bug? Is the documentation correct?
Any help is welcome :)
The text was updated successfully, but these errors were encountered: