-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-patchArea: [patch] table overrideArea: [patch] table overrideC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-hardExperience: HardExperience: HardS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
currently there is no way in replace or patch to specify a different version than the original dependency.
with replace:
[replace]
"openssl:0.9.24" = {git = "https://github.com/sfackler/rust-openssl.git"
error: no matching package for override `https://github.com/rust-lang/crates.io-index#openssl:0.9.24` found
location searched: https://github.com/sfackler/rust-openssl.git
version required: = 0.9.24
with patch:
[patch.crates-io]
openssl = {git = "https://github.com/sfackler/rust-openssl.git"}
is simply ignored.
error: failed to run custom build command for `openssl v0.9.24`
With the complexity of packages growing, it is sometimes nessesary to override versions in Cargo.toml since upstream cant update the version yet if another dependency hasnt updated.
konstin, ryankurte, piscisaureus, netvl, ArekPiekarz and 73 more
Metadata
Metadata
Assignees
Labels
A-patchArea: [patch] table overrideArea: [patch] table overrideC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-hardExperience: HardExperience: HardS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.