-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry uses default repository instead of private repository when both repo's have same package #3719
Comments
If I understand this correctly, it is also a security issue in the form of "dependency confusion" ala https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 (tho since you can configure your way out of this, and the lockfile ensures you get the same package every time after you've created it, I can see how you'd consider it less of an issue) |
I'm noticing this issue too. Annoyingly even poetry add .. --source=my-repo doesn't work either, even though it records that source in the pyproject.toml in poetry.lock it's still using the wrong repo. |
There's still the potential to end up with a malicious package on a |
I am also facing this issue and would like to help contribute a solution. Does anyone know where the problem might be in the codebase? |
I solved my issue via #4523 (comment) |
@hankehly was your issue cache related? Does that mean poetry consistently picks the right package from the private repository? |
@janheindejong is this still an issue on master? The cert changes are on master too now. |
Yes, by deleting the local cache, poetry was able to correctly pick the right package from the private repository. |
The original reported issue should not happen with the new installer, as it chooses the package via the executor implementation. If the issue is reproducible with poetry@master please create a new issue with relevant examples and logs. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Hi all,
Love poetry, great stuff, etc etc.
In my company we are using a private repository for packages. We have some company specific packages there, but also builds of packages for which there are no builds on PyPI, only tarballs.
When I try to install a package that is both available on PyPI, and our private repo, I'd expect Poetry to prefer the private repo; however, this is not what seems to be happening.
My
pyproject.toml
:Available packages on private repository:
The output of
poetry add pymssql -vvv
:Lo and behold - it's downloading the tarball from PyPI, not the wheel from our private repository.
However, if I change the pyproject.toml like below, it works as expected.
Output of
poetry add pymssql -vvv
:Qu'est-ce que le problème? Am I missing something here?
P.s. in case you are wondering why I'm not using the latest version - that's because we're still waiting on #3490.
The text was updated successfully, but these errors were encountered: