-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Only show the latest version in the Arch index #33262
base: main
Are you sure you want to change the base?
Conversation
Actually I have some questions about the design.
So the questions are:
|
@wxiaoguang Sorry, I misspoke. |
Are there some reference documents for the "only show latest version in index" behavior? (The question is why it is needed to be done on server side, since client could always figure out the latest version) |
@wxiaoguang No, this comes from my subjective opinion. Having too many packages will make the index larger, and most of the time, there isn't much demand for downloading older versions of software packages. Other package registries are facing the same situation. Just like Arch Linux's rolling release model, which only keeps the latest version. |
Thank you for the clarification. To be honest, I think it needs more time to make this PR mature.
|
@wxiaoguang Thanks for your review.
In Arch Linux, older versions of packages are stored in the Arch Linux Archive , and the index only contains the latest versions. e.g. archlinux/core/os/x86_64 , Other packages are the same, like Alpine. But for some software package repositories, like Kubernetes, keeping only the latest version isn't suitable because they need to install older versions to meet their requirements.
The old package cleanup feature already exists and meets the requirements (it cleans up outdated packages and rebuilds the index). |
So for this case, it doesn't need a new option, just "only show latest packages" for arch/alpine? |
@wxiaoguang As mentioned earlier (for some software package repositories like Kubernetes), there are users who need to keep historical versions. In fact, this option should be included in the organization settings. maximum package upload size limit and custom package registry GPG signatures also need to be moved to the organization settings. |
Yes, so I said just "only show latest packages" for arch/alpine? It should follow the official behavior. |
Maybe no one has interest/motivation to refactor the user (org) settings system at the moment ..... anyway, "open source". |
Only show the latest version of the package in the arch repo, having too many packages will make the index larger, and most of the time, there isn't much demand for downloading older versions of software packages.