-
Notifications
You must be signed in to change notification settings - Fork 121
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
cargo audit
ignored
#708
Comments
audit is already predefined for you as follows: [tasks.audit]
description = "Runs audit cargo plugin."
category = "CI"
condition = { env_true = [
"CARGO_MAKE_CRATE_HAS_DEPENDENCIES",
"CARGO_MAKE_CRATE_LOCK_FILE_EXISTS",
] }
command = "cargo"
args = ["audit"] so my guess is that you do'nt have dependencies or you don't have a cargo.lock file.
so you have many options here |
So It seems very unintuitive to do this task without logging it. I would argue if it is done by default, it should not be done silently. These sort of default tasks should print their output like any user defined task. |
not run at all since you are probably failing in the condition that i wrote. |
a bit on conditions: and how to override tasks: @JonathanWoollett-Light core tasks behave/print/work exactly like your custom ones. |
@JonathanWoollett-Light did you get answers here? |
If a task does not meet its preconditions this should be logged, for a task to silently fail (or not run) makes testing very awkward. I would suggest that the evaluation of pre-conditions should be noted (at-least on failure).
My understanding is now that |
@JonathanWoollett-Light i keep being asked to reduce the amount of printouts and than someone fails on something and asks it back. its a bit of a ping pong that i'm trying to see how to best handle. |
Describe The Bug
Whenever a step calls
cargo audit
this step is ignored bycargo make
.Example
produces:
skipping
cargo audit
To Reproduce
The text was updated successfully, but these errors were encountered: