Skip to content
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

Deprecate --no-force-pass #513

Merged
merged 9 commits into from
Aug 8, 2024

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Jun 26, 2024

This seems like a confusing name, and is dominated by the much clearer --check

This seems like a confusing option, and is dominated by the much clearer `--check`
@max-sixty max-sixty force-pushed the deprecate-no-force-pass branch from 1d1759d to 8353e6b Compare June 26, 2024 03:30
@max-sixty
Copy link
Collaborator Author

Clears up any confusion from #512

@max-sixty max-sixty requested a review from mitsuhiko July 7, 2024 19:18
@mitsuhiko
Copy link
Owner

I'm okay with that, but it's confusing that the underlying envvar that drives the feature is called INSTA_FORCE_PASS. Will this not cause further confusion?

@max-sixty
Copy link
Collaborator Author

I'm okay with that, but it's confusing that the underlying envvar that drives the feature is called INSTA_FORCE_PASS. Will this not cause further confusion?

Because the option in cargo insta is --check but the env var in insta is INSTA_FORCE_PASS?

I don't think they necessarily have to correspond 1:1 — cargo insta is a higher level UX, and --check does a couple of other things. So I see INSTA_FORCE_PASS as mostly an internal way for cargo-insta to say "we're handling failures at the end; keep going insta".

If you feel strongly then we could hide that option while still allowing it. Or some other alternative? But as #512 demonstrates I don't think the existing state is a nice clear interface...

@mitsuhiko
Copy link
Owner

I think it might be fine to just say --check is the way to go.

@max-sixty
Copy link
Collaborator Author

I think it might be fine to just say --check is the way to go.

OK, interpreting this to mean you're good with hiding --no-force-pass. Let me know (+ apologies for misunderstanding) if that's not correct!

@mitsuhiko mitsuhiko merged commit 2ec44f2 into mitsuhiko:master Aug 8, 2024
15 checks passed
@max-sixty max-sixty deleted the deprecate-no-force-pass branch August 9, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants