-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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. |
@ExplodingDragon what do you think? Should we follow the official behavior by default, or still introduce new config options? |
@wxiaoguang Sorry for the late reply. I think adding the new option seems better. I’m not sure if anyone actually needs the old version installed—even if it’s just 1% of people. |
How about make 99% as default? And we can have a break label. |
Maybe we need to add a flexible org/user setting system first (#33262 (comment)) before introducing this change. |
I think we need to merge it without the config option, only show the latest version. -> Arch package registry: client error when two versions of a package are present #33534 |
eb6cc22
to
9fa32ae
Compare
I still do not understand why
If there is a must and a strong reason to introduce There are already too many config options, keep introducing unclear options would make the whole system more difficult to maintain. |
+1 to show only the latest version in db by default without config option. Also lets not delete old versions from gitea (at least have an option to prevent). It is possible to download the package using browser and install using
Not sure this is required. Just using the last uploaded package should be good (order by time of upload). This would also allow to revert back to older version by deleting and re-uploading old version. |
@wxiaoguang There’s no good reason to keep this option, this is a bug in Gitea, it’s intentional from upstream pacman. ( #33534 (comment))
@balki Keeping the latest version around makes way more sense. Using the last upload timestamp is just gonna cause chaos. |
Since this is a bug, we need to backport it to version 1.23. |
@KN4CK3R do you have more suggestions for this change? |
I would go with that easy approach too because it will cover most (but sure, not all) use cases. To get the latest package version the |
Only show the latest version of the package in the arch repo.
closes #33534