Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

do not override existing Cargo.lock - #192

Open
eugene-babichenko wants to merge 1 commit into
actions-rs:masterfrom
eugene-babichenko:dont-override-cargo-lock
Open

do not override existing Cargo.lock#192
eugene-babichenko wants to merge 1 commit into
actions-rs:masterfrom
eugene-babichenko:dont-override-cargo-lock

Conversation

@eugene-babichenko

@eugene-babichenko eugene-babichenko commented May 6, 2021

Copy link
Copy Markdown

closes #163

I could just remove that line, but I think this will break clients that rely on the existing behavior and would need a major release.

@eugene-babichenko
eugene-babichenko force-pushed the dont-override-cargo-lock branch from d806ad5 to a4d1867 Compare May 7, 2021 07:24
Comment thread src/main.ts
await cargo.findOrInstall('cargo-audit');

await cargo.call(['generate-lockfile']);
if (!fs.existsSync('Cargo.lock')) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use the async call (stat?) for extra nicety. Not sure if this will make any difference, though.

@agrinman

agrinman commented Sep 9, 2021

Copy link
Copy Markdown

Any outstanding changes required on this PR that I can help with? Running into the same issue :)

@eugene-babichenko

Copy link
Copy Markdown
Author

Not really, this branch is usable as it is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

generate-lockfile overwrites a checked-in Cargo.lock

3 participants