-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Allowing customization of cargo nextest
command
#718
Comments
I'm open to it; I also don't know enough about how
A couple options:
|
I kinda like the first option, (I didn't know there could be a config, I was thinking about an env var at first). This would avoid adding a confusing command line that 99% of the callers won't care about. For the second option, I am afraid end-user will get confused wether to use a path or an enum for the same argument. So I would go for the first option. WDYT? |
OK great! Assuming it's consistent with the existing configs + we add a bullet to the docs, I'm good to merge an env var... |
Awesome !
I'll give it a try using a config first. Seems cleaner and I don't think
there are other features using env Var.
I'll ping you once I have something I am happy with. Thanks for your time :)
Le ven. 7 févr. 2025, 23:18, Maximilian Roos ***@***.***> a
écrit :
… OK great!
Assuming it's consistent with the existing configs + we add a bullet to
the docs, I'm good to merge an env var...
—
Reply to this email directly, view it on GitHub
<#718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHWBOLNO5UBHS7VD2BIX6D2OUWMBAVCNFSM6AAAAABWTSKBNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBUGIZTAOBQGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
(FYI there are lots of features using an env var! Search for |
First of all, thanks for maintaining the project, I appreciate !
In our CI, we are using Nix for reproducible environment. And in this context when issuing a
cargo-insta
, it points to/nix/store/[hash]-cargo-insta/bin
.And when using nextest as the runner,
cargo-insta
expends the command tocargo nextest run
withnextest
not in our~/.cargo/bin
.I think it makes complete sense to use the same
cargo
that started thecargo insta
command. But in our case, we would likecargo-nextest
to be invoked instead ofcargo nextest
.Would it make sense to be able to replace it? Or is it too niche?
Or is there any other solutions I am not seeing with rust to make
cargo nextest
points tocargo-nextest
?I'm a bit of a newbie to Rust and rust toolchain, so my assumptions might be wrong, don't hesitate to double check them :)
Edit: Obviously, if this is doable and makes sense to integrate here. I will implement the feature !
The text was updated successfully, but these errors were encountered: