-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
versions of pip, setuptools, wheel used by dh_virtualenv during securedrop-app-code build are not pinned. #5109
Comments
Looks like we can specify the versions of some of these with environment variables. |
The problem starts with https://github.com/spotify/dh-virtualenv/blob/master/dh_virtualenv/deployment.py#L138 and because we are not using The simpler solution is to have python3-venv installed and also pass --builtin-venv to |
Another option might be to pass |
Testing this right now. |
Problem, in Xenial we have The docs are available at https://dh-virtualenv.readthedocs.io/en/0.11/usage.html |
This will need a new build of the container image for packaging.
Maybe there is a better way to pass the variable using |
Builder image needed updates, and additional packages to resolve #5109
Thanks for the investigation. I've pushed a builder image update with python3-venv. As a workaround to provide more assurances that we are not installing unpinned dependencies at build-time, could we, instead pass some pip args (e.g.: [1] https://dh-virtualenv.readthedocs.io/en/0.11/usage.html?highlight=extra-pip#cmdoption--extra-pip-arg |
Yes, if you want please add that in a new commit here. |
Using It's better than the current situation because we're using Debian packages instead of whatever's on PyPI that day, but they're still not specified or hashed, so we don't really know what we're getting when cutting any SD release. 🙁 I think we're going to want to pin pip, pkg_resources, and setuptools in the requirements files, and we'll probably need #4686 as part of this. |
I think this has been addressed in #5484. |
Description
While investigating #5108, it was noticed that
setuptools
and associated packages are installed bydh_virtualenv
using the following command:Package versions are not pinned and hashes are not required. (
wheel
in particular is currently at version 0.34.1, which has a downstream issue that's breakingmake build-debs
.)Steps to Reproduce
make build-debs
against current developExpected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: