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

Sparse registries are not supported #500

Closed
psmit opened this issue Apr 4, 2023 · 0 comments · Fixed by #502
Closed

Sparse registries are not supported #500

psmit opened this issue Apr 4, 2023 · 0 comments · Fixed by #502
Labels
bug Something isn't working

Comments

@psmit
Copy link

psmit commented Apr 4, 2023

Describe the bug
We use a private registry which is "sparse-only". As a result, cargo deny does not work anymore and returns an error indicating that the protocol is not supported.

To Reproduce
Steps to reproduce the behavior:

  1. Add a sparse only registry to config.toml
[registries.myregistry]
protocol = "sparse"
index = "sparse+https://my-registry.domain/"
  1. Run cargo deny check in a project that depends on this registry:
cargo deny check
2023-04-04 03:47:22 [WARN] unable to parse source url 'sparse+https://my-registry.domain/': parse error: unsupported source protocol: sparse
2023-04-04 03:47:22 [WARN] unable to parse source url 'sparse+https://my-registry.domain/': parse error: unsupported source protocol: sparse
2023-04-04 03:47:22 [ERROR] parse error: parse error: unsupported source protocol: sparse for key `package.source` at line 3956 column 1

Expected behavior
I expect cargo deny to not throw errors.

@psmit psmit added the bug Something isn't working label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant