Skip to content

Commit 80b102d

Browse files
authored
fix: update save_cache step to use tmp python-version file (#105)
1 parent 94e68ac commit 80b102d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ orb.yml
44
sample_pip/*/__pycache__
55

66
# dev tools
7-
.idea
7+
.idea
8+
**/.DS_Store

src/commands/install-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ steps:
182182
PARAM_VENV_PATH: << parameters.venv-path >>
183183
command: <<include(scripts/cache-save.sh)>>
184184
- save_cache:
185-
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>>
185+
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>>
186186
paths:
187187
- /tmp/cci_pycache

0 commit comments

Comments
 (0)