colcon v2 plugin: don't strip env for stage-runtime-dependencies
HTTP proxy settings are being lost.
- Remove the `-i` argument to `env`, there are no longer variables
that must be filtered, allow all of the build-time environment
variables through. This will include http(s)_proxy once the
run scripts include it (shipped separately).
- Remove parameters to `stage-runtime-dependencies` which can just
be picked up from the environment now, after removing `-i` from
`env`.
- Remove PATH from env list as it no longer needs to be passed
through explicitly, it is in the run script.
Signed-off-by: Chris Patterson <email address hidden>
build providers: honour http proxy settings for snapd (#3251)
Configure snapd with the proxy settings configured by the user
for http_proxy and https_proxy. Do this on each launch so
that any changes in configuration passed are applied.
Update env-passthrough tests to use developer debug and
enable experimental extensions now that http proxy affects
snapd operation.
Signed-off-by: Chris Patterson <email address hidden>
snapcraft: use system certificates by default for https requests (#3252)
The `requests` library relies on `certifi` library for CA
certificates, unless the use overrides REQUESTS_CA_BUNDLE
environment variable to point to a different certificate
bundle.
Since there is no way for the user to tell certifi to use
the host certificates, unless using the OS distribution
patched package), have snapcraft always set
REQUESTS_CA_BUNDLE to the host SSL certificates, if they
exist in the usual Debian/Ubuntu location.
Log the setting to debug.
Note that this approach does allow the user to override
this default setting of REQUESTS_CA_BUNDLE with their own.
Signed-off-by: Chris Patterson <email address hidden>