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

Caching ~/.cargo/bin between github action runs causes the machete action to fail #141

Open
Mossop opened this issue Oct 28, 2024 · 0 comments

Comments

@Mossop
Copy link

Mossop commented Oct 28, 2024

The recommended paths to cache for rust projects include ~/.cargo/bin. However if you do this then the cargo-machete action fails:

Run bnjbvr/cargo-machete@main
  env:
    CARGO_HOME: /home/runner/.cargo
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
Run clechasseur/rs-cargo@v2
  with:
    command: install
    args: cargo-machete
    use-cross: false
  env:
    CARGO_HOME: /home/runner/.cargo
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
/home/runner/.cargo/bin/cargo install cargo-machete
    Updating crates.io index
error: binary `cargo-machete` already exists in destination
Add --force to overwrite
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
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

1 participant