Skip to content

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

@Mossop

Description

@Mossop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions