-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Can't publish to private registry (works with cargo publish) #831
Comments
Thanks for the report, I will try to reproduce and fix this 👍 |
@MarcoIeni I looked into this because I was running into the same issue. It's caused when the private registry is configured using a sparse protocol url instead of a git url. release-plz only uses the git index from |
Thanks for looking into this. I'll try to look into this next week. |
I'm trying to check if #863 fixed this issue.
I registered to [registries.ieni]
index = "ssh://git@ssh.shipyard.rs/ieni/crate-index.git"
[net]
git-fetch-with-cli = true
[http]
user-agent = "shipyard <token>" and I created an ssh key pair. However both release-plz and cargo publish are failing for me.
Probably I'm missing something from the configuration. |
@MarcoIeni Sparse registry indexes don't use get, they use https. A sparse index URL will start with https://doc.rust-lang.org/cargo/reference/registry-index.html#sparse-protocol |
ok, thanks, I will test this. However, from scullionw's screenshot, I see he is not using a sparse registry (I see a |
reopening, because I'm not sure the linked pr fixed the issue |
That's the same behavior and error I was seeing when I tried using a sparse URL without support for it. The crate_index package would attempt to treat it as if it were a git repo. I do feel it would be appropriate for this issue to be left open until the author can verify that the PR fixed it for them, and they are able to provide more information about whether or not they are using a sparse index. |
In #892 I added a test where I publish a crate to the gitea private cargo registry which runs in docker. |
Bug description
Can't publish to private registry (works with cargo publish)
Expected behavior
I would expect the crates to be published like they are with
cargo publish
orcargo release
Screenshots
Environment
The text was updated successfully, but these errors were encountered: