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

[DOCS] Cache busting if package is replaced #138

Open
maxtruxa opened this issue Jul 4, 2022 · 2 comments
Open

[DOCS] Cache busting if package is replaced #138

maxtruxa opened this issue Jul 4, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@maxtruxa
Copy link
Contributor

maxtruxa commented Jul 4, 2022

If a package in a repository is replaced (or deleted and re-added), bpt continues to use the "old" version of the package if it's present in the local cache. This is totally understandable: How is bpt supposed to differentiate between the package revisions if they have the exact same version number (version+revision)?

I'm not sure if there is a good general solution for this. The obvious one is to never replace packages but always increment the version number (version and/or revision) instead. This aligns with what other package repositories (like PyPI and npm) are doing.
Packages can be replaced safely, if you have control over all downstream clients and can force them to clear their cache.

I don't think this is a huge issue, but should probably at least be mentioned somewhere in the docs for bpt repo.

@maxtruxa maxtruxa added the documentation Improvements or additions to documentation label Jul 4, 2022
@vector-of-bool
Copy link
Owner

This is indeed the purpose of the revision number: to bust client caches and force them to download a new package.

The docs don't make this clear, but it would be helpful to note this behavior.

@oraqlle
Copy link

oraqlle commented Jan 2, 2023

How do you specify a revision to be imported to a CRS repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants