-
-
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
Arch packages implementation #31037
Arch packages implementation #31037
Conversation
9a3f45a
to
1a49dd9
Compare
1a49dd9
to
1007ce7
Compare
TODO:
|
Thanks @wxiaoguang and @yp05327 , sorry. |
@KN4CK3R what's the next plan? Would you like to work on this PR, or propose a new one? |
I think the main conflict is the router path, other codes could be refactored later. Maybe we can do a discussion about which change's routers are better? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Let's start a fresh discussion @ExplodingDragon @KN4CK3R I have made the tests in this PR pass KN4CK3R 's code: https://github.com/wxiaoguang/gitea/commits/feature-arch-KN4CK3R/ , see the last commit wxiaoguang@122001c (and I might still force push the last commit a few times to make it easier to read) I marked the differences with
So what implementation should we take? Some differences are quite important (eg: RepositoryName, DeletePackageURL) |
Overall I think this PR is good enough, if the differences in #31037 (comment) don't block. |
@KN4CK3R last call if the differences in #31037 (comment) don't matter. |
I will push some changes later. Edit: Changing the existing was harder than expected. Therefore I added the slashed reponame and different compression types to my PR. These changes could be integrated easily but are not pushed yet because I need to extend the tests. |
I pushed the changes (coauthored by @ExplodingDragon) some days ago and removed the docs file. Maybe someone would like to have a look: |
Thank you, are there some details about the DIFF #31037 (comment) ?
ExplodingDragon's support empty repo name, the new one doesn't support? (To be clear, whether it should be supported?)
Which URL is correct (or better) to delete? And one more thing, in your |
I removed the empty check now. Empty repos are fine too.
There is no correct because there is no official spec. Deleting a package should rarely happen. It may be easier for the user to just have the package name and version in the url instead of crafting the full filename. Providing the filename makes the code easier. Removing this endpoint may be even easier.
The only reason for this code is because chi doesn't support |
The question is: does the full&extension name matter? If the full&extension name matters, then it must use If we'd like to make it "providing the filename makes the code easier., removing this endpoint may be even easier.", maybe it should be something like
I do not quite agree, we can't blame (That's just my opinion and I won't block it.) |
And one more question, how to continue? Would you like to push your changes here, or create a new PR? |
@KN4CK3R maybe 1.23 is going to be frozen in a week. The last 2 questions:
|
I already updated the delete endpoint in my code. If @ExplodingDragon is fine with it, I would like to create a PR. |
According to #31037 (comment)
🙏 |
Close #25037 Close #31037 This PR adds a Arch package registry usable with pacman. ![grafik](https://github.com/user-attachments/assets/81cdb0c2-02f9-4733-bee2-e48af6b45224) Rewrite of #25396 and #31037. You can follow [this tutorial](https://wiki.archlinux.org/title/Creating_packages) to build a package for testing. Docs PR: https://gitea.com/gitea/docs/pulls/111 Co-authored-by: [d1nch8g@ion.lc](mailto:d1nch8g@ion.lc) Co-authored-by: @ExplodingDragon --------- Co-authored-by: dancheg97 <dancheg97@fmnx.su> Co-authored-by: dragon <ExplodingFKL@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
To make the routes clearer: Refactor arch route handlers #32972 (the first step) , I am sure we could have a quite clear router init function soon. |
close #25037
This Commit was created by d1nch8g (#25396).
This PR adds a package registry for Arch Linux packages with support for package files, signatures, and automatic pacman-database management.
Features:
tar.zst
package and Gitea sign it.SigLevel = Required
.You can follow this tutorial to build a *.pkg.tar.zst package for testing
docs pr: gitea/docs#47
Co-authored-by: d1nch8g@ion.lc
Co-authored-by: @KN4CK3R
Co-authored-by: @silverwind
Co-authored-by: @mahlzahn