-
-
Notifications
You must be signed in to change notification settings - Fork 134
insta: Cargo: allow globset version up to 0.4.16 #810
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
Conversation
globset v0.4.17 bumped to rust edition 2024. As insta is currently on edition 2021 ensure to use globset versions <0.4.17. Link: BurntSushi/ripgrep@a60e62d Link: BurntSushi/ripgrep#3149 Signed-off-by: Richard Leitner <dev@g0hl1n.net>
|
isn't default cargo behavior to allow any patch version? what's the observable bad outcome with the existing command? |
Exactly. That's the problem IMHO. insta is in this case allowing a dependency which doesn't matches its rust edition.
The problem shows when compiling with a rust toolchain which supports only edition 2021, but doesn't support 2024 (as you do if you build using YoctoProject/OpenEmbedded walnascar for example). If IMHO the "root cause" is having Or have I missed/misinterpreted something? |
|
but crates can compile with different editions IIUC? can we see a reproducible example of an error? |
|
Sure. Here's the message from the cargo build triggered by bitbake: |
|
OK yes; I think there's some disagreement in the rust community re whether to do this in libraries vs apps, but no downside on merging this and the MSRV resolver will solve everything when we're up to that rust version |
|
thank you @g0hl1n ! |
## Summary Prepare for the 1.44.0 release: - Bump version to 1.44.0 in `insta/Cargo.toml` and `cargo-insta/Cargo.toml` - Update CHANGELOG.md with all changes since 1.43.2 ## Changes in 1.44.0 - Added non-interactive snapshot review and reject modes for use in non-TTY environments (LLMs, CI pipelines, scripts) #815 - Add `--disable-nextest-doctest` flag with deprecation warning #803 - Add ergonomic `--test-runner-fallback` / `--no-test-runner-fallback` flags #811 - Apply redactions to snapshot metadata #813 - Remove confusing 'previously unseen snapshot' message #812 - Speed up JSON float rendering #806 (@nyurik) - Allow globset version up to 0.4.16 #810 (@g0hl1n) - Improve documentation #814 (@tshepang) - Enforce starting newlines in assertions #563 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
Summary
globset v0.4.17 changed its rust edition from 2021 to 2024. As insta is currently on edition 2021 ensure to use globset versions <0.4.17.
References