Skip to content

cache-bin: true breaks cargo subcommands on new github macos runner #341

Closed
gear-tech/gear
#5457

Description

@montyc1999

Today Github started rolling out a new macos runner image, on which all my cargo commands failed, despite there being no rust-related changes.

It seems as though something broke the rustc, cargo symlinks:

cargo fmt --check --all

error: error: unexpected argument 'fmt' found
Usage: rustup-init[EXE] [OPTIONS]
For more information, try '--help'.

I think this is due to #325.

Once I added cache-bin: 'false' my jobs started passing again.

Activity

  1. 11 remaining items

  2. demosdemon commented on May 15, 2026

    @demosdemon

    anecdotally, it appears this is only a problem if cache-bin was true and a macos-26 target uses a cache from an older macos builder (such as what is happening for many people as github updates the macos-latest target to point to macos-26). Purging my caches without updating cache-bin appears to have resolved the problem.

  3. xStrom commented on May 15, 2026

    @xStrom

    That's interesting, seems like a good idea for the cache key to include the OS version then.

  4. montyc1999 commented on May 29, 2026

    @montyc1999
    Author

    The homebrew people have shipped a workaround for this, although they still believe the bug is in the rust-cache action:

    Homebrew/homebrew-core#283801 (comment)

    Anyway, closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions