-
Notifications
You must be signed in to change notification settings - Fork 20
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
chore(deps): update clap and mdbook version #141
Conversation
Hey, thanks for the report. The reason the version was pinned back is to support the existing MSRV (which I try and keep about ~6 months old). Please could you provide a minimal [package]
name = "tmp-mdbook"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
mdbook = "0.4.35"
mdbook-admonish = "1.13.0" $ cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.04s I think, whatever the cause is, I should be able to fix it by unpinning in |
I've pulled the changes that I think work with the existing MSRV out into this PR, which is now merge in: #142 Could you try installing mdbook-admonish from a git dependency, and see if it resolves your issue? mdbook-admonish = { git = "https://github.com/tommilligan/mdbook-admonish", branch = "main" } |
Hey there - I ended up abandoning the idea of installing the various utils via cargo as it's much slower than using binstall (30s instead of 7 minutes), which is fine as a onetime thing locally, but annoying on CI. The minimal repro for this is mdbook-admonish and mdbook-catppuccin in a cargo.toml file. E.g.: [package]
name = "mdbook-install"
version = "0.1.0"
edition = "2021"
[dependencies]
# mdbook = "0.4.35"
mdbook-admonish = "1.13.0"
mdbook-catppuccin = "2.0.1" Output:
Happy to close this out. |
Excellent, great to hear. I'll release this as a patch version now. I dug into this a little further as I'm still surprised this doesn't resolve correctly, given there is a correct set of dependencies that could be installed to satisfy the requirements. But I found this interesting comment by Alex Crichton:
which I think is exactly what's happening here. TIL! |
Yeah, cargo dependency resolution has some interesting behavior that only really makes sense if you spend enough time looking at the edge cases. Thanks again. |
Hey there, have been keeping an 👁️ on this thread - the dependency resolution is quite interesting - thanks for the visualisation! @tommilligan I originally pinned clap in As for mdbook itself, they have unintentionally published breaking changes a few times in their patch versions so I opted to be on the safer side and pin it instead. I assume unpinning clap makes it easier to avoid situations like these in the future? |
Yes agreed, as the version range is more permissive I think it is less likely to happen. I think to make this bug even less likely to happen you could specify only a major version like As I said above, my initial reason for pinning was to support MSRV installs, but I'm happy with the outcome of just using Thanks for your work supporting |
I'd like to be able to install mdbook, mdbook-admonish from a cargo.toml dependencies section (in order to easily write an xtask that can build a site for netlify), but the pin breaks this while not seeming at all necessary. This updates the versions to the latest for both mdbook and clap.
See also the same PR for mdbook-catppuccin catppuccin/mdBook#78