From 4e30c94a40c5c959a2d83498c24095556bfd9e80 Mon Sep 17 00:00:00 2001 From: merlleu Date: Sun, 1 Oct 2023 15:43:15 +0200 Subject: [PATCH] Cargo package - Fix missing domain in cargo sparse url (#27370) Hello, it seems that one my previous PR (adding the sparse index to the cargo package content page), did not worked as expected: the gitea-origin-url does not add the AppURL because of the `sparse+` prefix in the url. Currently the rendered page gives the following: ```toml [registry] default = "gitea" [registries.gitea] index = "sparse+/api/packages/ownername/cargo/" # Sparse index # index = "https://git.example.com/ownername/_cargo-index.git" # Git [net] git-fetch-with-cli = true ``` (cherry picked from commit a112cf34d391cc04770021f9ffaa29e383cb9d51) --- templates/package/content/cargo.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/package/content/cargo.tmpl b/templates/package/content/cargo.tmpl index da9fc4ab39..4dd7c3f731 100644 --- a/templates/package/content/cargo.tmpl +++ b/templates/package/content/cargo.tmpl @@ -8,7 +8,7 @@ default = "gitea" [registries.gitea] -index = "" # Sparse index +index = "sparse+" # Sparse index # index = "" # Git [net]