Danila Fominykh
5e4c582976
Merge branch 'main' into pacman-packages
2023-07-30 19:21:13 +03:00
Danila Fominykh
3df8d52fb8
changed pacman database creation mechanics, storing package desc as file in object storage, metadata structure update
2023-07-28 16:32:01 +03:00
Danila Fominykh
8b06f76360
replaced HTTP headers with url params
2023-07-27 13:21:11 +03:00
Danila Fominykh
1e33f61375
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:50:44 +03:00
Danila Fominykh
524a2a01c1
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:35:35 +03:00
Danila Fominykh
7b92529bc4
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:35:17 +03:00
KN4CK3R
2d7fe4cc1e
Fix handling of plenty Nuget package versions ( #26075 )
...
Fixes #25953
- Do not load full version information (v3)
- Add pagination support (v2)
2023-07-26 19:43:21 +00:00
Danila Fominykh
ab1a9a1587
changed context doer to context user, fixed package config setting
2023-07-26 17:26:16 +03:00
silverwind
672b00b542
Merge branch 'main' into pacman-packages
2023-07-25 00:02:26 +02:00
KN4CK3R
6aa30af724
Fix handling of Debian files with trailing slash ( #26087 )
...
Fixes #26022
- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both
2023-07-24 16:19:44 +02:00
Danila Fominykh
e22a3c7bb1
Merge branch 'main' into pacman-packages
2023-07-24 15:38:58 +03:00
Danila Fominykh
23f1ba193d
replaced base domain variable in metadata with registry host variable in similarly with container registry
2023-07-24 13:33:45 +03:00
delvh
f3d41c61eb
Remove db.DefaultContext
in routers/
and cmd/
( #26076 )
...
Now, the only remaining usages of `models.db.DefaultContext` are in
- `modules`
- `models`
- `services`
2023-07-23 23:47:27 -04:00
Danila Fominykh
597a948e33
replaced custom auth with existing methods
2023-07-23 15:42:52 +03:00
Danila Fominykh
245a54532f
Merge branch 'main' into pacman-packages
2023-07-22 20:34:30 +03:00
wxiaoguang
9b25bfa8f4
Remove redundant "RouteMethods" method ( #26024 )
...
The `RouteMethods` is mainly an alias for `Methods` with different
argument order.
Remove it to keep the "route.go" code clear
2023-07-21 00:43:49 +02:00
Danila Fominykh
faff9d9c57
getting storage object instead of reading bytes
2023-07-17 20:30:36 +03:00
Danila Fominykh
1ea4d48b39
fixed package version owner in metadata update operation
2023-07-17 14:19:54 +03:00
Danila Fominykh
9e7c6ef5e9
updated documentation about metadata update function
2023-07-17 00:03:24 +03:00
Danila Fominykh
1a082903d7
Merge branch 'main' into pacman-packages
2023-07-16 13:09:54 +03:00
KN4CK3R
bd82d8974e
Add support for different Maven POM encoding ( #25873 )
...
Fixes #25853
- Maven POM files aren't always UTF-8 encoded.
- Reject the upload of unparsable POM files
2023-07-14 09:39:15 +00:00
dancheg97
f3841f0777
fixed response status code for metadata update operation
2023-07-12 11:41:20 +03:00
dancheg97
1df0a1d252
fixed file size for mock and scope of time patch
2023-07-09 18:26:01 +03:00
silverwind
2685f1a307
Merge branch 'main' into pacman-packages
2023-07-09 14:27:52 +02:00
KN4CK3R
115f40e433
Test if container blob is accessible before mounting ( #22759 )
...
related #16865
This PR adds an accessibility check before mounting container blobs.
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
2023-07-09 11:24:43 +00:00
dancheg97
364c33b0ad
fixed pacman database creation error for case with multiple architectures and distributions
2023-07-09 11:48:46 +03:00
silverwind
b5db5b89e8
Merge branch 'main' into pacman-packages
2023-07-04 20:43:36 +02:00
silverwind
88f835192d
Replace interface{}
with any
( #25686 )
...
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d
).
2023-07-04 18:36:08 +00:00
dancheg97
568c3b12b9
test for package create, get and delete operations
2023-07-04 20:02:32 +03:00
KN4CK3R
c890454769
Add direct serving of package content ( #25543 )
...
Fixes #24723
Direct serving of content aka HTTP redirect is not mentioned in any of
the package registry specs but lots of official registries do that so it
should be supported by the usual clients.
2023-07-03 15:33:28 +02:00
dancheg97
56772de730
corrected package blob structure, pacman database is created on get request automatically from package metadata in database
2023-07-02 23:03:34 +03:00
dancheg97
6d1037d506
db desc file for pacman database is saved in the same space with package
2023-07-01 17:13:21 +03:00
dancheg97
2873debef0
documentation for arch packages, additional signature in arch package upload for better security
2023-06-28 22:12:01 +03:00
dancheg97
749a106d06
updated remove function description
2023-06-25 17:45:16 +03:00
dancheg97
5beeb24684
added method to remove package verified with user's GPG key, removed unnecessary directory creation
2023-06-25 13:15:29 +03:00
dancheg97
c37231189b
corrected package database connection description and documentation reference in UI
2023-06-24 18:08:18 +03:00
dancheg97
e399ce8452
opdated operation pacman database craetion to form or update database file in memory, added download counter related to pkg.tar.zst files
2023-06-24 13:37:33 +03:00
dancheg97
e75ddfd1db
reused existing services/packages functions for package and signature files/blobs creation
2023-06-22 10:33:23 +03:00
dancheg97
af99efb0a0
moved arch package routes to the same scope with other packages
2023-06-22 09:29:08 +03:00
dancheg97
b354f027ff
code refactoring and package version publisher id correction
2023-06-21 23:30:07 +03:00
dancheg97
d24e41a6fe
fixed db download failure and incorrect package owner assigned on push
2023-06-21 00:15:56 +03:00
dancheg97
ec18d9b535
added arch packages implementation
2023-06-20 23:08:48 +03:00
wxiaoguang
4e2f1ee58d
Refactor web package and context package ( #25298 )
...
1. The "web" package shouldn't depends on "modules/context" package,
instead, let each "web context" register themselves to the "web"
package.
2. The old Init/Free doesn't make sense, so simplify it
* The ctx in "Init(ctx)" is never used, and shouldn't be used that way
* The "Free" is never called and shouldn't be called because the SSPI
instance is shared
---------
Co-authored-by: Giteabot <teabot@gitea.io>
2023-06-18 09:59:09 +02:00
KN4CK3R
cdb088cec2
Add CRAN package registry ( #22331 )
...
This PR adds a [CRAN](https://cran.r-project.org/ ) package registry.

2023-05-22 10:57:49 +08:00
wxiaoguang
6b33152b7d
Decouple the different contexts from each other ( #24786 )
...
Replace #16455
Close #21803
Mixing different Gitea contexts together causes some problems:
1. Unable to respond proper content when error occurs, eg: Web should
respond HTML while API should respond JSON
2. Unclear dependency, eg: it's unclear when Context is used in
APIContext, which fields should be initialized, which methods are
necessary.
To make things clear, this PR introduces a Base context, it only
provides basic Req/Resp/Data features.
This PR mainly moves code. There are still many legacy problems and
TODOs in code, leave unrelated changes to future PRs.
2023-05-21 09:50:53 +08:00
KN4CK3R
5968c63a11
Add Go package registry ( #24687 )
...
Fixes #7608
This PR adds a Go package registry usable with the Go proxy protocol.

2023-05-14 23:38:40 +08:00
KN4CK3R
9173e079ae
Add Alpine package registry ( #23714 )
...
This PR adds an Alpine package registry. You can follow [this
tutorial](https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package )
to build a *.apk package for testing.
This functionality is similar to the Debian registry (#22854 ) and
therefore shares some methods. I marked this PR as blocked because it
should be merged after #22854 .

---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-05-12 17:27:50 +00:00
KN4CK3R
05209f0d1d
Add RPM registry ( #23380 )
...
Fixes #20751
This PR adds a RPM package registry. You can follow [this
tutorial](https://opensource.com/article/18/9/how-build-rpm-packages ) to
build a *.rpm package for testing.
This functionality is similar to the Debian registry (#22854 ) and
therefore shares some methods. I marked this PR as blocked because it
should be merged after #22854 .

2023-05-05 20:33:37 +00:00
KN4CK3R
723598b803
Implement Cargo HTTP index ( #24452 )
...
This implements the HTTP index
[RFC](https://rust-lang.github.io/rfcs/2789-sparse-index.html ) for Cargo
registries.
Currently this is a preview feature and you need to use the nightly of
`cargo`:
`cargo +nightly -Z sparse-registry update`
See https://github.com/rust-lang/cargo/issues/9069 for more information.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
2023-05-03 16:58:43 -04:00
KN4CK3R
bf999e4069
Add Debian package registry ( #24426 )
...
Co-authored-by: @awkwardbunny
This PR adds a Debian package registry.
You can follow [this
tutorial](https://www.baeldung.com/linux/create-debian-package ) to build
a *.deb package for testing.
Source packages are not supported at the moment and I did not find
documentation of the architecture "all" and how these packages should be
treated.

Part of #20751 .
Revised copy of #22854 .
---------
Co-authored-by: Brian Hong <brian@hongs.me>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-05-02 12:31:35 -04:00