Skip to content
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

Allow specific source to only be used in resolving dependency when source = "<source>" is specified #7180

Closed
2 tasks done
chunleng opened this issue Dec 12, 2022 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@chunleng
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

As title, some sources are not meant to be lookup because they are used for specific purpose. For example, in pytorch-cpu, I get the following printed when running poetry lock --no-update.

Resolving dependencies... (881.4s)<c1>Source (pytorch-cpu):</c1> Authorization error accessing https://download.pytorch.org/whl/cpu/requests/

The above makes unnecessary requests and causes the dependency resolution to be slower than it needs to be.

If I may, I propose the following option for the source to be used only in the specified dependency

[[tool.poetry.source]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
specified_only = true
@chunleng chunleng added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Dec 12, 2022
@neersighted
Copy link
Member

neersighted commented Dec 12, 2022

This is a duplicate of #6713. An issue being closed as a duplicate does not preclude it from being implemented, it only means that the linked issue is the place to discuss it. Please investigate the linked issue instead of continuing to open more issues. Thank you.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Dec 12, 2022
@chunleng
Copy link
Author

chunleng commented Dec 12, 2022

This is a duplicate of #6713. An issue being closed as a duplicate does not preclude it from being implemented, it only means that the linked issue is the place to discuss it. Please investigate the linked issue instead of continuing to open more issues. Thank you.

Sorry, browser crashed and I didn't realize my previous request went through because of your fast reaction. Thank you for the quick response!

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants