Skip to content

Commit 7319eab

Browse files
authored
Updating bundler clean instruction order.
Fixes circleci#4477
1 parent 536fa7e commit 7319eab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jekyll/_cci2/caching.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,14 @@ To prevent this behavior, add a step that cleans Bundler before restoring depend
363363

364364
```yaml
365365
steps:
366+
- run: bundle clean --force
366367
- restore_cache:
367368
keys:
368369
# when lock file changes, use increasingly general patterns to restore cache
369370
- v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
370371
- v1-gem-cache-{{ arch }}-{{ .Branch }}-
371372
- v1-gem-cache-{{ arch }}-
372-
- run: bundle install && bundle clean
373+
- run: bundle install
373374
- save_cache:
374375
paths:
375376
- ~/.bundle

0 commit comments

Comments
 (0)