Add cargo sparse registry remote type
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful

This commit is contained in:
2026-10-09 19:34:48 +11:00
parent bda762b10e
commit 66da315cd9
12 changed files with 192 additions and 2 deletions
+15
View File
@@ -228,6 +228,21 @@ go mod download`,
},
];
case 'cargo':
return [
{
title: 'Point crates.io at this sparse registry',
language: 'toml',
code: `# ~/.cargo/config.toml
[source.crates-io]
replace-with = "${name}"
[registries.${name}]
index = "sparse+${proxy}/"`,
note: 'config.json is served by artifactapi so crate downloads also go through this remote.',
},
];
case 'puppet':
return [
{
+1
View File
@@ -17,6 +17,7 @@ const typeColors: Record<string, 'blue' | 'green' | 'yellow' | 'red' | 'default'
puppet: 'yellow',
terraform: 'blue',
goproxy: 'green',
cargo: 'yellow',
};
export function Locals() {
+1
View File
@@ -17,6 +17,7 @@ const typeColors: Record<string, 'blue' | 'green' | 'yellow' | 'red' | 'default'
puppet: 'yellow',
terraform: 'blue',
goproxy: 'green',
cargo: 'yellow',
};
export function Remotes() {