-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Regression running cargo-insta
in workspace with crate in root
#593
Comments
Thanks for the issue and sorry for the trouble. Will look at this. |
No problem at all! I can work around it easily enough - just wanted to mention it here in case anyone ran into the same thing. |
|
OK, it seems that since fixing the panic (#396), we're "more consistent" about how we handle crates in a workspace, and so we now respect Possibly that's confusing and we should have What do folks think? @mitsuhiko ? |
This was fixed in 1.40, added a test out of mitsuhiko#593 to confirm
This was fixed in 1.40, added a test out of #593 to confirm
Ah ok, that makes sense. I'm just used to running |
I will leave this open for feedback from @mitsuhiko or others |
No feedback so will close, but if anyone feels strongly, please comment / reopen / open another issue |
What happened?
Hi! I've been running
cargo-insta
in a workspace for the past few years running the test command in the root of my workspace. The workspace has a crate in the root.I recently updated
cargo-insta
(I'm not sure which version I was on before unfortunately - I reinstalled Rust) and now I can't seem to update inline snapshots outside of the root crate.It seems to work fine if there isn't a crate at the root. I can move my project around to workaround this, but I know there are other projects set up this way too.
Reproduction steps
git clone https://github.com/grovesNL/insta-bug-2024-09
cargo test --all
orcargo insta test --all
insta-example
will report a failure and create a pending snap file, but can't be reviewed.Insta Version
1.40
rustc Version
rustc 1.81.0 (eeb90cda1 2024-09-04)
What did you expect?
All snapshots should be reviewable/accepted
The text was updated successfully, but these errors were encountered: