-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
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. |
@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 |
@ExplodingDragon what do you think about it? Keep the current approach, or use |
@wxiaoguang I still believe that comparing the complete versions makes more sense. Simply using the last uploaded version goes against intuition. Reverting to a previous version should involve deleting the new version, rather than uploading the old version to overwrite the index of the new one. Just like Arch Wiki Downgrading packages said, randomly downgrading can mess up dependencies:
Downgrading is a risky move and shouldn't be taken lightly or handled in a simplistic manner. |
That's not intended. As you said, you delete the new version which makes the previous version the newest. You don't upload an old version. Then the index contains the previous version again (which is now the new version). Therefore it's still not needed to parse every version to compare them. |
* giteaofficial/main: Only show the latest version in the Arch index (go-gitea#33262) [skip ci] Updated translations via Crowdin Enable eslint for commonjs (go-gitea#33575) Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) (go-gitea#33569) Switch to `@vitest/eslint-plugin` (go-gitea#33573) Avoid duplicate SetContextValue call (go-gitea#33564)
Only show the latest version of the package in the arch repo. closes go-gitea#33534 --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Only show the latest version of the package in the arch repo.
closes #33534