-
Notifications
You must be signed in to change notification settings - Fork 7
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
Timed out waiting for pkg
to be available in registry cargo-http-registry
#61
Comments
Interestingly this timeout is also hit when using direct file system access as opposed to HTTP. So that would rule out any issues related to caching. |
I think the issue comes down to
It ends up discarding it more or less silently, which means it won't show up in the summaries that it queries every second |
I fixed this issue by removing the unused dependency and feature in our code, but when publish the package to crates-io I didn't get this issue. This still says that cargo-http-registry is quite unstable. |
If you can provide crate name and version that you published to crates.io as well as the contents of the local registry after you tried publishing the same versioned crate to it, we may be able to get to the bottom of it. |
I tried to publish the crate gcore, which has the feature dep:codec (which is actually a renamed dependency of parity-scale-codec). The contents of the crates.io registry: https://github.com/rust-lang/crates.io-index/blob/master/gc/or/gcore, which is slightly different from the local registry. In particular, it does not have crates.io: {
"name": "gcore",
"vers": "1.5.0",
"deps": [
{
"name": "codec",
"req": "^3.6.4",
"features": [],
"optional": true,
"default_features": false,
"target": null,
"kind": "normal",
"package": "parity-scale-codec"
},
{
"name": "galloc",
"req": "^1.5.0",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "dev"
},
{
"name": "gear-core-errors",
"req": "^1.5.0",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal"
},
{
"name": "gear-stack-buffer",
"req": "^1.5.0",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal"
},
{
"name": "gprimitives",
"req": "^1.5.0",
"features": [],
"optional": false,
"default_features": false,
"target": null,
"kind": "normal"
},
{
"name": "gsys",
"req": "^1.5.0",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal"
},
{
"name": "hex-literal",
"req": "^0.4.1",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "dev"
}
],
"cksum": "c0bdb11c2fe9c5e92615a7ea4b188408bfbe557c47809c7adeefc018efdf707d",
"features": {
"debug": []
},
"features2": {
"codec": [
"dep:codec",
"gear-core-errors/codec",
"gprimitives/codec"
]
},
"yanked": false,
"rust_version": "1.80",
"v": 2
}
{
"name": "gcore",
"vers": "1.5.0-b710fb843",
"deps": [
{
"name": "codec",
"req": "^3.6.4",
"features": [],
"optional": true,
"default_features": false,
"target": null,
"kind": "normal",
"registry": "https://github.com/rust-lang/crates.io-index",
"package": "parity-scale-codec"
},
{
"name": "gear-core-errors",
"req": "^1.5.0-b710fb843",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal",
"registry": null,
"package": null
},
{
"name": "gear-stack-buffer",
"req": "^1.5.0-b710fb843",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal",
"registry": null,
"package": null
},
{
"name": "gprimitives",
"req": "^1.5.0-b710fb843",
"features": [],
"optional": false,
"default_features": false,
"target": null,
"kind": "normal",
"registry": null,
"package": null
},
{
"name": "gsys",
"req": "^1.5.0-b710fb843",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "normal",
"registry": null,
"package": null
},
{
"name": "galloc",
"req": "^1.5.0-b710fb843",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "dev",
"registry": null,
"package": null
},
{
"name": "hex-literal",
"req": "^0.4.1",
"features": [],
"optional": false,
"default_features": true,
"target": null,
"kind": "dev",
"registry": "https://github.com/rust-lang/crates.io-index",
"package": null
}
],
"cksum": "ed514b238616c25adaa68fe08846241444b10492200e2e42c860456058af8e88",
"features": {
"codec": [
"gear-core-errors/codec",
"gprimitives/codec"
],
"debug": [],
"ethexe": [
"gsys/ethexe"
]
},
"yanked": false,
"links": null
} I also described a minimal example here: rust-lang/cargo#14399 (comment), but I was told that the absence of features2 is normal |
I don't see much difference with crates-io. Some fields are in different order, some fields are explicitly set to null (we can try to change the order and add I also tried to replicate crates-io behavior locally, but I couldn't get dep:codec from package publish data. Features were split into |
Ah okay, thanks for the analysis. Very strange. Yeah, I don't think ordering matters. Same for |
The registry does not respond within 1 minute to request from cargo. My cargo config looks like this:
The text was updated successfully, but these errors were encountered: