1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/services/packages
Giteabot 77bd3acb65
Do not force creation of _cargo-index repo on publish (#27266) (#27765)
Backport #27266 by @merlleu

Hello there,
Cargo Index over HTTP is now prefered over git for package updates: we
should not force users who do not need the GIT repo to have the repo
created/updated on each publish (it can still be created in the packages
settings).

The current behavior when publishing is to check if the repo exist and
create it on the fly if not, then update it's content.
Cargo HTTP Index does not rely on the repo itself so this will be
useless for everyone not using the git protocol for cargo registry.

This PR only disable the creation on the fly of the repo when publishing
a crate.

This is linked to #26844 (error 500 when trying to publish a crate if
user is missing write access to the repo) because it's now optional.

Co-authored-by: merlleu <r.langdorph@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-10-24 15:40:02 +08:00
..
alpine Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
cargo Do not force creation of _cargo-index repo on publish (#27266) (#27765) 2023-10-24 15:40:02 +08:00
cleanup Do not force creation of _cargo-index repo on publish (#27266) (#27765) 2023-10-24 15:40:02 +08:00
container Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
debian Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
rpm Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
auth.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
packages.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00