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
how to use private git repository in cargo with gitlab crates-index #75
Comments
You need to put the URL to the git repo into |
Yeah, at first sight on the error output, I would suspect the cause of the error to be within the |
gitlab can do file storg ? not use database. |
A database is currently a requirement to have in Alexandrie, to serve as the source of truth in case of conflicts between the crate index and the crate storage (if they become out of sync) and/or for faster lookup of crate records. The crate index is just expected to be a Git repository, so it can totally be hosted in GitLab without issues. In the other hand, for the crate storage, we don't currently allow storing actual crate archives (the actual code of the crates) in a Git repository, because all of these archives can become quite large as a whole and I don't really see the benefit of versioning the crate storage (because the crate index, which is first consulted to lookup these archives, is already versioned). |
I'd like to be able to store crystals in a simple, lightweight way, but There was a problem with the configuration of that I'm here now config.json.I don't know how to solve it |
Your {
"dl": "<link-to-your-instance-of-alexandrie>/api/v1/crates/{crate}/{version}/download",
"api": "<link-to-your-instance-of-alexandrie>",
"allowed-registries": [
"https://github.com/rust-lang/crates.io-index",
"<link-to-your-index-repository>"
]
} where you should replace:
Is that helpful ? |
Thanks to your help. But in the process, I found a few problems,related links are as follows |
Thanks for filing these additional issues (and even coming up for a PR to address one of them). |
I just read doc for alternate-registry.
but something was wrong. I just exec:
cargo publish
,but get failed messageThe text was updated successfully, but these errors were encountered: