Skip to content

Commit c832bf6

Browse files
committed
Registry keys still needed in config.toml to allow cargo's other functions to work
1 parent 5fa0d76 commit c832bf6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/murfey/server/api/bootstrap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,12 @@ def get_cargo_config(request: Request):
606606
"[source.murfey-crates]",
607607
f'registry = "sparse+{index_mirror}"', # sparse+ to use sparse protocol
608608
"",
609+
"[registries.murfey-crates]",
610+
f'index = "sparse+{index_mirror}"', # sparse+ to use sparse protocol
611+
"",
612+
"[registry]",
613+
'default = "murfey-crates"', # Redirect to our mirror
614+
"",
609615
]
610616
)
611617
config_bytes = io.BytesIO(config_data.encode("utf-8"))

0 commit comments

Comments
 (0)