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

Arch packages implementation #31037

Open
wants to merge 213 commits into
base: main
Choose a base branch
from

Conversation

ExplodingDragon
Copy link
Contributor

@ExplodingDragon ExplodingDragon commented May 21, 2024

close #25037

This Commit was created by d1nch8g (#25396).

Sources: https://ion.lc/core/gitea

This PR adds a package registry for Arch Linux packages with support for package files, signatures, and automatic pacman-database management.

Features:

  1. Push any tar.zst package and Gitea sign it.
  2. Delete endpoint for specific package version and all related files
  3. Supports trust levels with SigLevel = Required.
  4. Package UI with instructions to connect to the new pacman database and visualised package metadata

You can follow this tutorial to build a *.pkg.tar.zst package for testing

Co-authored-by: d1nch8g@ion.lc
Co-authored-by: @KN4CK3R
Co-authored-by: @silverwind

dancheg97 and others added 30 commits June 20, 2023 23:08
…ction and remove windows incompatible dependency
Co-authored-by: silverwind <me@silverwind.io>
… file in memory, added download counter related to pkg.tar.zst files
…equest automatically from package metadata in database
@ExplodingDragon
Copy link
Contributor Author

ExplodingDragon commented May 21, 2024

TODO:

  • Package signatures should be managed by Gitea, custom signatures will result in inconsistencies with index signatures.
  • Signatures should not be saved under properties
  • Pacman DB should not be generated on-the-fly, it needs to be added when uploaded
  • We should not support overwrite uploads, which breaks the structure, and should perform a delete operation before uploading.
  • Fix documentation errors .

@ExplodingDragon ExplodingDragon marked this pull request as ready for review June 28, 2024 18:55
@ExplodingDragon ExplodingDragon changed the title WIP: Arch packages implementation Arch packages implementation Jun 28, 2024
@KN4CK3R
Copy link
Member

KN4CK3R commented Jun 28, 2024

When #25396 was closed some weeks ago, I adopted the PR and rewrote it to look similar to how the other package registries work. I will push my changes next week, then we could compare with this PR and decide how we continue.

@ExplodingDragon
Copy link
Contributor Author

When #25396 was closed some weeks ago, I adopted the PR and rewrote it to look similar to how the other package registries work. I will push my changes next week, then we could compare with this PR and decide how we continue.

@KN4CK3R My implementation is not perfect, in fact, I just refactored the original pr and delegated its signature to Gitea to manage, like #27069.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/docs modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arch linux packages
5 participants