install-action icon indicating copy to clipboard operation
install-action copied to clipboard

Pass arbitrary flags to `cargo-binstall`

Open musjj opened this issue 2 months ago • 1 comments

When a tool is not available in https://crates.io, cargo-binstall requires you to specify where the git repository should be sourced from with --git:

  • --git <URL> — Override how to fetch Cargo.toml package manifest.

    This skip searching crates.io and instead clone the repository specified and runs as if --manifest-path $cloned_repo is passed to binstall.

But we currently can't use this option with taiki-e/install-action, because the action does not allow you to control the flags passed to cargo-binstall.

musjj avatar Oct 17 '25 18:10 musjj

Hmm, if you want to always install Rust crates from source, I recommend using cache-cargo-install-action (which supports installation from git url and caching) instead of this action. (See also https://github.com/taiki-e/install-action/issues/66)

taiki-e avatar Oct 24 '25 16:10 taiki-e