Comments (4)
I think this is a cargo issue.
The crates metadata are generated by Cargo. The key is indeed req
in the alternative-registries
rfc and in the cargo documentation (https://doc.rust-lang.org/cargo/reference/registries.html), but is version_req
in the cargo nightly documentation: https://doc.rust-lang.org/nightly/cargo/reference/registries.html.
I'm able to fetch a crate from Meuse if the crate does not have dependencies. If a crate has a dependency, I should indeed replace version_req
by req
in the crate metadata to be able to fetch it.
I could transform version_req
to req
in Meuse, but I would like to know why Cargo is pushing the crate with version_req
instead of req
.
from meuse.
I looked at this a little more and I think what cargo publishes isn't intended to go directly to the git index. notice there's a format for an index entry that uses 'req' and another format for the body of a publish request that uses 'version_req'. You can see crates.io building a git dependency from the published data here: https://github.com/rust-lang/crates.io/blob/e2f20c70093a91169e8a654e2a87a035ae3a54a7/src/models/dependency.rs#L115 and it's setting 'req' of the dependency to 'version_req' of the published crate.
so... I think my title is wrong here... it's not just just the keyname that's different, it's the whole serialized object. But they're so similar that it happens to work with just renaming that key. very odd/lucky!
from meuse.
You are right. The format in the git repository should now be OK ;)
from meuse.
confirmed a fresh publish can be downloaded by another project using the private registry.
from meuse.
Related Issues (20)
- Missing CSS after deployment HOT 2
- UI: list users HOT 2
- Login with OAuth2/SSO HOT 3
- Show last token usage HOT 2
- UI: list my tokens HOT 1
- Documentation hosting HOT 7
- Bug after restart on docker, crate-index already exists HOT 3
- Crates with + in version return 404 via meuse HOT 5
- crate name with dash HOT 8
- Crates rename doesn't work with features (`package = ...`) HOT 10
- token generation doesn't work through website's /me HOT 1
- Notifications HOT 1
- Documentation source files HOT 2
- Bump dependencies to fix log4j security issues HOT 1
- configurable s3 key prefix? HOT 4
- issues with Dockerfile upgrade to jdk:17 HOT 2
- can't not copy file from build stage HOT 4
- by-crate-id query bug HOT 1
- Cargo yank fails with exception HOT 2
- Support for sparce registry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meuse.