Closed
Description
Description
When publishing a crate with a renamed dependency
# Cargo.toml
[package]
name = "rename_deps"
version = "0.1.2"
edition = "2021"
publish = ["gitea"]
[dependencies]
embedded-hal-0-2 = { package = "embedded-hal", version = "0.2.7" } # <-- embedded-hal renamed to embedded-hal-0-2
The registry does not reflect the fact that the dependency is renamed https://my-gitea-domain/api/packages/SomeOwner/cargo/re/na/rename_deps
:
{"name":"rename_deps","vers":"0.1.2","deps":[{"name":"embedded-hal","req":"^0.2.7","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null}],"cksum":"5a4e09f3752e42de84106f0f3b3e219eb553c78ade6ba0f4473fd5b744d18572","features":{},"yanked":false}
Same thing formatted:
{
"name": "rename_deps",
"vers": "0.1.2",
"deps": [
{
"name": "embedded-hal", // <-- Should have been my new name?
"req": "^0.2.7",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal",
"registry": "https://github.com/rust-lang/crates.io-index",
"package": null // <-- Should be "embedded-hal"?
}
],
"cksum": "5a4e09f3752e42de84106f0f3b3e219eb553c78ade6ba0f4473fd5b744d18572",
"features": {},
"yanked": false
}
I posted the same issue in rust-lang/cargo#14148 leading me here. I have not tried this on demo.gitea.com
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
Whatever is in the docker image
Operating System
Debian 12
How are you running Gitea?
- docker image: gitea/gitea:1.22.0-rootless
Database
MySQL/MariaDB