IssueRaiser

allow overriding dependency major version

currently there is no way in replace or patch to specify a _different_ version than the original dependency. with replace: ```toml [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: ```toml [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.

Posted by aep on Jun 19, 2018, 11:39 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments

github (Software)

allow overriding dependency major version

aepJun 19, 2018, 11:39 AM

currently there is no way in replace or patch to specify a _different_ version than the original dependency. with replace: ```toml [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: ```toml [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.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue