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

force revalidate cache when package with version not found in cache/ #9421

Closed
trim21 opened this issue May 17, 2024 · 2 comments
Closed

force revalidate cache when package with version not found in cache/ #9421

trim21 opened this issue May 17, 2024 · 2 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@trim21
Copy link
Contributor

trim21 commented May 17, 2024

Issue Kind

Brand new capability

Description

I have a package A and package B require A. When I publish a new version of package A@x.y.z, I may run poetry add A@x.y.z in B. And if A is not published yet, versions of A is cached.

After A is published, when I run poetry add A@x.y.zagain, poetry still try to find result from cache, so it raise a error thatA@x.y.z` not found.

Hope in this case poetry could revalidate cache.

Impact

not sure

Workarounds

clear all cache, but too much.

@trim21 trim21 added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels May 17, 2024
@dimbleby
Copy link
Contributor

dimbleby commented May 17, 2024

of course poetry is already capable of finding new releases, this is a main line case

I expect what you are seeing is simply that it is respecting cache expiry headers as set by pypi, the timeout should be quite short

if you are impatient there is always --no-cache.

no change needed

@trim21
Copy link
Contributor Author

trim21 commented May 17, 2024

thanks

@trim21 trim21 closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants