panamax-rs / panamax

Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Apache License 2.0
427 stars 45 forks source link

not a git repository error #117

Open bilgehanparay opened 9 months ago

bilgehanparay commented 9 months ago

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"