-
Notifications
You must be signed in to change notification settings - Fork 92
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
Cannot set cargoExtraArgs in craneLib.cargoNextest (#675) #678
Conversation
Both `cargo nextest run` and `cargo llvm-cov` do not place any cargo options/flags right behind `cargo <HERE> ...`. All cargo related flags can be added to the `cargoNextestExtraArgs` attribute. [Issue ipetkov#675]
After altering `checkPhaseCargoCommand` to use one of two explicit command strings inside if/else blocks, it is no longer necessary to default `cmd` to an empty value when `withLlvmCov` is set to `true`.
I have made the decision to alter the creation of Since I'm still a noob with Nix, there might be benefits of using optional strings over if/else that I don't know of. Up for discussion, I guess. 😄 |
You can ignore the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for reporting and fixing this!
Motivation
To resolve issue (#675) with the
cargoExtraArgs
attribute incraneLib.cargoNextest
being placed in betweencargo <HERE> nextest
orcargo <HERE> llvm-cov nextest
where there should be no options/flags.Cargo flags cannot be used in this context. Only
cargo nextest run/archive
flags, which contain all the flags fromcargo test
(at least) are possible.Sources I have checked:
Checklist
docs/API.md
(or general documentation) with changesCHANGELOG.md