You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
merlleu 796ff26e0e
Do not force creation of _cargo-index repo on publish (#27266)
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: KN4CK3R <admin@oldschoolhack.me>
8 months ago
..
api Do not force creation of _cargo-index repo on publish (#27266) 8 months ago
common Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
install Enhanced auth token / remember me (#27606) 9 months ago
private Fix typo "GetLatestRunnerToken" (#27680) 8 months ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Upgrade to golangci-lint@v1.55.0 (#27756) 8 months ago
init.go Replace more db.DefaultContext (#27628) 9 months ago