Skip to content
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

How to run non-Cargo commands? #27

Open
RReverser opened this issue Dec 9, 2023 · 1 comment
Open

How to run non-Cargo commands? #27

RReverser opened this issue Dec 9, 2023 · 1 comment

Comments

@RReverser
Copy link

I want to use this crate with wasm-pack test, which, by itself, is a wrapper for Cargo that sets up custom environment.

Right now I can only invoke cargo minimal-versions ... followed by Cargo subcommands and not by arbitrary commands.

@taiki-e
Copy link
Owner

taiki-e commented Dec 13, 2023

  • cargo minimal-versions forwards flags to cargo, so it may be possible to support custom subcommands on the wasm-pack side.

  • I'm not sure how realistic it would be to add a generic way to cargo-minimal-versions to handle this; cargo-minimal-versions does some cargo-specific processing to eliminate false negatives/positives, but this involves manifest changes, etc. and is not easy to make persistent, unlike cargo-llvm-cov's show-env subcommand. Support cargo minimal-versions generate-lockfile #18

  • Maybe it would be more realistic to support subcommands like cargo minimal-version wasm-pack, like cargo-llvm-cov's cargo llvm-cov nextest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants