Skip to content

poetry cache clear should be able to clear all information for a single package #4438

@binh-vu

Description

@binh-vu
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Thanks for making an awesome product.

In my project, I split my code to several packages, which are published to pypi. The problem is after I upload a new version of a package on pypi, poetry doesn't know that the package has been updated and throw SolverProblemError (depends on package X which doesn't match any versions) if I use the updated package somewhere else.

I think this may be due caching. Clearing poetry cache: poetry cache clear pypi --all does help me solve the problem. However, it's so slow as poetry has to repopulate the cache for all other packages.

I think it would be great to have:

  • the ability to invalidate/clear cache of specific packages, or
  • automatically fetch new version of a package if the requested version is newer than the current one in the cache or when it fails to resolve dependencies.

Thanks!

Metadata

Metadata

Assignees

Labels

area/sourcesReleated to package sources/indexes/repositoriesarea/uxFeatures and improvements related to the user experiencekind/featureFeature requests/implementations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions