-
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
Private repos don't actually take precedence #1677
Comments
I'm also curious to see whether, and how, this treatment of private package indexes has been intentionally changed. Maybe there's a more-elegant treatment of alternative sources that just needs better documentation 🤞 |
I also noticed this behavior when using artifactory. My work around is to use artifactory virtual repository, and then add |
I was also surprised by this new behavior. Previously raised this issue : #1658 |
A comment here states that the PyPi repo is always added as last so private repos are preferred. Looks like a bug to me. |
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
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. |
Issue
I am using poetry 1.0.0b8. According to the latest documentation (https://github.com/sdispater/poetry/blob/master/docs/docs/repositories.md), if I have a project with a custom source in my pyproject.toml, it will always take precedence when installing packages.
This is not the case: We have a custom python package in our company JFrog that we named pyvault. By chance, there is a package in PyPI with the same name. In any project where we have our internal JFrog as a source,
poetry add pyvault
still adds the pyvault from PyPI. We can change that by specifyingpyvault = { version = "^1.0", source = "jfrog" }
in the pyroject.toml, so there is a work around, but the documentation is wrong.The text was updated successfully, but these errors were encountered: