Skip to content

Commit

Permalink
removed generate-lockfile
Browse files Browse the repository at this point in the history
As `cargo-audit` implements logic to
generate a `Cargo.lock` file if not existing
in [`locate_or_generate`](https://github.com/rustsec/rustsec/blob/02eeaa39b418b0f2862a7b2ef5558c2d3cc2e456/cargo-audit/src/lockfile.rs#L14C8-L14C26)
the additional lockfile generation is not
needed and causes checked-in lockfiles
to be ignored and overwritten.
  • Loading branch information
tillmann-crabnebula committed Apr 2, 2024
1 parent 4da312d commit 4b283a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ async function getData(
const cargo = await Cargo.get();
await cargo.findOrInstall('cargo-audit');

await cargo.call(['generate-lockfile']);

let stdout = '';
try {
core.startGroup('Calling cargo-audit (JSON output)');
Expand Down

0 comments on commit 4b283a7

Please sign in to comment.