Do the checklist before filing an issue:
Description
On my GitHub Actions CI pipeline the actin-rs/cargo@v1 errors using the install command when, due to caching, the target crate is already installed.
Workflow code
My Workflow file:
https://github.com/mr-pascal/changelog-generator/actions/runs/3451578950/workflow
See the test_coverage job workflow.
# Install "grcov"
- uses: actions-rs/cargo@v1
with:
command: install
args: grcov
Action output
Run actions-rs/cargo@v1
with:
command: install
args: grcov
use-cross: false
env:
RUSTFLAGS: -Cinstrument-coverage
LLVM_PROFILE_FILE: coverage-%p-%m.profraw
/home/runner/.cargo/bin/cargo install grcov
Updating crates.io index
error: binary `grcov` already exists in destination
Error: Add --force to overwrite
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Expected behavior
Instead of throwing an error and failing the job I would expect a plain "Ignored" notice, that the package already exists and the job just continues.

Additional context
I use caching in the workflow to speed it up significantly, as such also the previous installed grcov is kept in cache and available.
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-2-${{ hashFiles('**/Cargo.lock') }}
Using --force and just re-installing the crate is no option, since this would introduce also a re-compilation of the crate.
Do the checklist before filing an issue:
actions-rsActions?If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
Description
On my GitHub Actions CI pipeline the
actin-rs/cargo@v1errors using theinstallcommand when, due to caching, the target crate is already installed.Workflow code
My Workflow file:
https://github.com/mr-pascal/changelog-generator/actions/runs/3451578950/workflow
See the
test_coveragejob workflow.Action output
Expected behavior
Instead of throwing an error and failing the job I would expect a plain "Ignored" notice, that the package already exists and the job just continues.
Additional context
I use caching in the workflow to speed it up significantly, as such also the previous installed
grcovis kept in cache and available.Using
--forceand just re-installing the crate is no option, since this would introduce also a re-compilation of the crate.