Skip to content

Commit

Permalink
force on suggest output if the output format is json-full, as this is…
Browse files Browse the repository at this point in the history
… needed by automation
  • Loading branch information
Gankra committed Jan 21, 2023
1 parent f981ba8 commit 55b142c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,8 @@ fn cmd_check(out: &Arc<dyn Out>, cfg: &Config, sub_args: &CheckArgs) -> Result<(
},
);

// Bare `cargo vet` shouldn't suggest in CI
let suggest = if !cfg.cli.locked {
// Bare `cargo vet` shouldn't suggest in CI (unless you want --output-format=json-full)
let suggest = if !cfg.cli.locked || cfg.cli.output_format == OutputFormat::JsonFull {
report.compute_suggest(cfg, network.as_ref(), true)?
} else {
None
Expand Down

0 comments on commit 55b142c

Please sign in to comment.