Hi all,
I'm having some difficulties to deploy this tool. I was able to sync and serve my mirror and was able to open the server index page(at localhost:8080). However, once I start a new project and run cargo build, I receive spurious network error and Server prints an error message saying "Not a git repository 'mirror/crates.io-index'"
mirror.toml
base_url = "http://mirror/crates"
crates.io-index config.json
{
"dl": "http://mirror/crates/{prefix}/{crate}/{version}/{crate}-{version}.crate",
"api": "http://mirror/crates"
}
.cargo/config
[source.mirror]
registry="http://localhost:8080/git/crates.io-index"
[source.crates-io]
replace-with="mirror"
Hi all, I'm having some difficulties to deploy this tool. I was able to sync and serve my mirror and was able to open the server index page(at localhost:8080). However, once I start a new project and run cargo build, I receive spurious network error and Server prints an error message saying "Not a git repository 'mirror/crates.io-index'" mirror.toml base_url = "http://mirror/crates" crates.io-index config.json { "dl": "http://mirror/crates/{prefix}/{crate}/{version}/{crate}-{version}.crate", "api": "http://mirror/crates" } .cargo/config [source.mirror] registry="http://localhost:8080/git/crates.io-index" [source.crates-io] replace-with="mirror"