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 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
fcb84f1
fix anything ...
ExplodingDragon Sep 19, 2024
c98a705
fix anything v2 ...
ExplodingDragon Sep 19, 2024
97aefc5
fix anything v3 ...
ExplodingDragon Sep 19, 2024
2667260
fix anything v4 ...
ExplodingDragon Sep 19, 2024
317ea7f
fix defer error
ExplodingDragon Sep 20, 2024
fbe09b2
fix cache download
ExplodingDragon Sep 20, 2024
0328200
fix some bugs
ExplodingDragon Sep 20, 2024
7b53f05
fix ui bugs
ExplodingDragon Sep 20, 2024
6978762
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 20, 2024
c71fd97
fix url typo
ExplodingDragon Sep 23, 2024
d7373b5
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 23, 2024
5c2625a
fix typo and errors
ExplodingDragon Sep 24, 2024
b37e591
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 24, 2024
bc72567
add locker
ExplodingDragon Sep 24, 2024
3da98af
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 24, 2024
f4092d6
fix tests
ExplodingDragon Sep 24, 2024
90f3b30
Merge branch 'pacman-packages' of github.com:ExplodingDragon/gitea in…
ExplodingDragon Sep 24, 2024
3caa520
add comments.
ExplodingDragon Sep 24, 2024
c35f354
add Concurrent tests.
ExplodingDragon Sep 24, 2024
1b0a4e2
fix errors.
ExplodingDragon Sep 24, 2024
1b256e4
fix errors.
ExplodingDragon Sep 24, 2024
5aeccde
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 24, 2024
d80ca1f
remove xdata check
ExplodingDragon Sep 24, 2024
3c71f34
add more version checks
ExplodingDragon Sep 24, 2024
b3db785
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 25, 2024
568f7a6
clean style
ExplodingDragon Sep 25, 2024
0b95ef2
fix bugs
ExplodingDragon Sep 26, 2024
07c2b6d
fix typo
ExplodingDragon Sep 26, 2024
8b63213
Merge branch 'main' into pacman-packages
ExplodingDragon Sep 26, 2024
7eb9935
Merge branch 'main' into pacman-packages
ExplodingDragon Oct 9, 2024
bf0b534
Merge branch 'main' into pacman-packages
ExplodingDragon Oct 15, 2024
aee7007
Merge branch 'main' into pacman-packages
ExplodingDragon Oct 16, 2024
d679da8
Merge branch 'main' into pacman-packages
ExplodingDragon Nov 6, 2024
e07ddcb
Merge branch 'main' into pacman-packages
wxiaoguang Nov 7, 2024
84ff353
fix
wxiaoguang Nov 7, 2024
ce73234
use PackageRegistryHost
wxiaoguang Nov 7, 2024
76554fe
fix test
wxiaoguang Nov 7, 2024
f68456f
fix bugs from forgejo
ExplodingDragon Nov 7, 2024
590e17b
Merge branch 'pacman-packages' of github.com:ExplodingDragon/gitea in…
ExplodingDragon Nov 7, 2024
5e959b0
Merge branch 'main' into pacman-packages
ExplodingDragon Nov 7, 2024
15f7371
improve test
wxiaoguang Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions models/packages/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/packages/alpine"
"code.gitea.io/gitea/modules/packages/arch"
"code.gitea.io/gitea/modules/packages/cargo"
"code.gitea.io/gitea/modules/packages/chef"
"code.gitea.io/gitea/modules/packages/composer"
Expand Down Expand Up @@ -150,6 +151,8 @@ func GetPackageDescriptor(ctx context.Context, pv *PackageVersion) (*PackageDesc
switch p.Type {
case TypeAlpine:
metadata = &alpine.VersionMetadata{}
case TypeArch:
metadata = &arch.VersionMetadata{}
case TypeCargo:
metadata = &cargo.Metadata{}
case TypeChef:
Expand Down
6 changes: 6 additions & 0 deletions models/packages/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Type string
// List of supported packages
const (
TypeAlpine Type = "alpine"
TypeArch Type = "arch"
TypeCargo Type = "cargo"
TypeChef Type = "chef"
TypeComposer Type = "composer"
Expand All @@ -55,6 +56,7 @@ const (

var TypeList = []Type{
TypeAlpine,
TypeArch,
TypeCargo,
TypeChef,
TypeComposer,
Expand Down Expand Up @@ -82,6 +84,8 @@ func (pt Type) Name() string {
switch pt {
case TypeAlpine:
return "Alpine"
case TypeArch:
return "Arch"
case TypeCargo:
return "Cargo"
case TypeChef:
Expand Down Expand Up @@ -131,6 +135,8 @@ func (pt Type) SVGName() string {
switch pt {
case TypeAlpine:
return "gitea-alpine"
case TypeArch:
return "gitea-arch"
case TypeCargo:
return "gitea-cargo"
case TypeChef:
Expand Down
Loading
Loading