Skip to content

Commit 3f83bca

Browse files
authored
Use pipenv sync to only install from lock (canada-ca#61)
* Use pipenv sync to only install from lock Using sync to install packages exactly as specified in Pipfile.lock. * Add updated lockfile Our builds were apparently succeeding by pipenv install adding a library (importlib_metadata) to the lockfile during build. Switching to use pipenv sync made for a reproducible build but revealed the missing library.
1 parent 5833633 commit 3f83bca

3 files changed

Lines changed: 29 additions & 11 deletions

File tree

api/Pipfile.lock

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
id: install
1717
dir: api
1818
entrypoint: pipenv
19-
args: ['install', '-d', '--skip-lock']
19+
args: ['sync', '-d', '--bare']
2020
env:
2121
- PIPENV_NOSPIN=TRUE
2222

web/cloudbuild.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ steps:
1616
id: install
1717
dir: web
1818
entrypoint: pipenv
19-
args: ['install', '-d']
19+
args: ['sync', '-d', '--bare']
20+
env:
21+
- PIPENV_NOSPIN=TRUE
2022

2123
- name: 'gcr.io/track-compliance/ci'
2224
id: test

0 commit comments

Comments
 (0)