need cache version on restore as well as save
@@ -144,9 +144,9 @@ commands:
# The hope is that even if some of the dependencies change between branches and
# revisions, that enough of the slow-changing dependencies will remain static that
# Cargo won't have to rebuild them.
- - target_dir-macos-{{ .Branch }}-{{ checksum "Cargo.lock" }}
- - target_dir-macos-{{ .Branch }}-
- - target_dir-macos-
+ - target_dir-macos-{{ .Branch }}-{{ checksum "Cargo.lock" }}-{{ .Environment.CACHE_VERSION }}
+ - target_dir-macos-{{ .Branch }}-{{ .Environment.CACHE_VERSION }}
+ - target_dir-macos-{{ .Environment.CACHE_VERSION }}
- run:
name: "Install Homebrew dependencies"
command: |
