Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not a git repository error #117

Open
bilgehanparay opened this issue Oct 23, 2023 · 0 comments
Open

not a git repository error #117

bilgehanparay opened this issue Oct 23, 2023 · 0 comments

Comments

@bilgehanparay
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant