Skip to content

Commit

Permalink
Fallback to cache-key without branch if missing (CircleCI-Public#28) …
Browse files Browse the repository at this point in the history
…[semver:patch]

This uses a cache-key for the initial build on branches until a cache
key is generated specific to the branch.
  • Loading branch information
ksylvest authored Jun 18, 2020
1 parent 1afeb38 commit 1dbe461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/install-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ steps:
- restore_cache:
keys:
- << parameters.key >>-{{ checksum "<< parameters.path >>/Gemfile.lock" }}-{{ .Branch }}
- << parameters.key >>-{{ checksum "<< parameters.path >>/Gemfile.lock" }}
- run:
name: Bundle Install <<^parameters.with-cache>>(No Cache)<</parameters.with-cache>>
command: |
Expand Down

0 comments on commit 1dbe461

Please sign in to comment.