Skip to content

Commit

Permalink
fix: update save_cache step to use tmp python-version file (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaryt authored Sep 15, 2022
1 parent 94e68ac commit 80b102d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ orb.yml
sample_pip/*/__pycache__

# dev tools
.idea
.idea
**/.DS_Store
2 changes: 1 addition & 1 deletion src/commands/install-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ steps:
PARAM_VENV_PATH: << parameters.venv-path >>
command: <<include(scripts/cache-save.sh)>>
- save_cache:
key: <<parameters.cache-version>>-cci_pycache-<<#parameters.include-branch-in-cache-key>>{{ .Branch }}-<</parameters.include-branch-in-cache-key>>{{ checksum "/tmp/cci_pycache/lockfile" }}-<<#parameters.include-python-in-cache-key>>{{ checksum "/home/circleci/.pyenv/version" }}-<</parameters.include-python-in-cache-key>>
key: <<parameters.cache-version>>-cci_pycache-<<#parameters.include-branch-in-cache-key>>{{ .Branch }}-<</parameters.include-branch-in-cache-key>>{{ checksum "/tmp/cci_pycache/lockfile" }}-<<#parameters.include-python-in-cache-key>>{{ checksum "/tmp/python-version" }}-<</parameters.include-python-in-cache-key>>
paths:
- /tmp/cci_pycache

0 comments on commit 80b102d

Please sign in to comment.