-
Notifications
You must be signed in to change notification settings - Fork 310
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
Consider not changing the version in Cargo.toml
before the release is cut
#496
Comments
If you just need to use the latest pre-released version then the patch method is a good way to go. But to use it you also need to specify the current version in the repo master branch, this will work: [patch.crates-io]
bdk = { git = 'https://github.com/bitcoindevkit/bdk' }
[dependencies]
bdk = { version = "0.14.1-dev", default-features = false, features = ["all-keys"]} |
This doesn't quite work unfortunately. The point of So to apply your suggestion, I need to:
At that point, I might as well not use |
I don't have to be the same it just has to be compatible right? I would have expected To me it looks like patch is just not behaving correctly here. See this post where the user does the same thing rust-lang/cargo#2222 (comment) |
From the spec:
I think this says that |
I think you're right. I would expect patch to somehow relax this rule or provide a way of more powerfully overriding. |
Yes, I've longed for a more "brutal" |
In chat with @LLFourn sounds like this will also be of use to his projects. I propose:
|
I think this works @thomaseizinger? if so I guess this can be closed. |
With changed proposed in #544 you should be able to use pre-release versions by pointing your |
In order to depend on unreleased versions of libraries,
cargo
offers a way to patch a certain version of a dependency via the[patch.crates-io]
.This however only works if the version mentioned in the project
Cargo.toml
file is the same one as the one set in the dependency's manifest.I am currently depending on bdk 0.14 and trying to patch
bdk
across my dependency graph to latest HEAD. Unfortunately, that doesn't work:Do people use the
[patch.crates-io]
feature? If yes, how are you dealing with pre-release version bumps in the manifest file?The text was updated successfully, but these errors were encountered: