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

unsupported URL protocol when used with private registry #102

Closed
scullionw opened this issue Jun 21, 2023 · 5 comments
Closed

unsupported URL protocol when used with private registry #102

scullionw opened this issue Jun 21, 2023 · 5 comments
Milestone

Comments

@scullionw
Copy link

scullionw commented Jun 21, 2023

  • I am using a shipyard.rs private registry
  • I can publish using cargo release (so the url works)

When i try publishing with this crate I get:

Updating crates.io index
info version committing changes
info version tagging
error: crates index error: unsupported URL protocol; class=Net (12)

is this expected?

@pksunkara
Copy link
Owner

I need more information. What's the URL for the registry?

@scullionw
Copy link
Author

[registries.myregistry]
index = "ssh://[email protected]/myregistry/crate-index.git"

@pksunkara
Copy link
Owner

Looks like it's an issue with Index crawler. frewsxcv/rust-crates-index#37.

We will be removing it as part of #93 though soon.

@pksunkara pksunkara added this to the 0.3 milestone Jun 21, 2023
@j-baker
Copy link
Contributor

j-baker commented Sep 6, 2023

It's worth noting that this also cannot handle sparse+https if there is no corresponding non-sparse index. rust-crates-index assumes that any sparse registry has a corresponding un-sparse registry per frewsxcv/rust-crates-index#128 and explodes violently if this is not true! A solution to #93 would be much appreciated.

@pksunkara
Copy link
Owner

I have switched out the dependency for reading the index to https://github.com/EmbarkStudios/tame-index and this should now be fixed in master. Can you guys please try it out before I release?

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

3 participants