← Back to issue list

cli: add support for 'http-proxy' and 'https-proxy' parameters

View original Github issue

Metadata

Project
snapcraft
Number
#2786
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2786 added --http-proxy and --https-proxy options for supported LXD, Multipass, host, and managed-host providers, with unit and spread-test coverage.

Resolution: closed resolved

Reason: PR #2786 was merged after review, completing the proxy options and provider-specific environment handling. Its implementation built on the merged provider-unification work in PR #2678.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Some modules support configuration of http(s) proxies today (e.g. ant, maven, nodejs) - but they are only honoured if building with host provider and the environment variables are already in the environment. Add two explicit build options for http_proxy and https_proxy, with matching environment variables to support typical application behavior. Only add these to the environment if provider is one of 'lxd', 'multipass', 'host', or 'managed-host'. Otherwise, either: (a) warn if found in the user's environment. (b) error if not found in environment, and therefor must have been configured with an explicit command-line option. Add tests for coverage of get_build_environment_flags() with new http_proxy and https_proxy handling.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2786 added --http-proxy and --https-proxy options for supported LXD, Multipass, host, and managed-host providers, with unit and spread-test coverage.
stealth/space-bunny-alpha — closed resolved Merged PR #2786 added --http-proxy and --https-proxy options, configuring proxy environment variables for LXD, Multipass, host, and managed-host providers.
qwen/qwen3.6-35b-a3b — — Merged after review and conflict resolution. Adds CLI parameters for http_proxy and https_proxy to configure build environment variables. Refactored to a unified option set with provider-specific support for lxd, multipass, host, and managed-host.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Adds explicit http-proxy and https-proxy CLI parameters to configure build environment variables for LXD, Multipass, and host providers. Refactored command execution and unified provider handling during review before final merge.

Update history

No update history recorded yet.

Related work

  • Related To: snapcore/snapcraft#2678 (confidence 100%)

    Explicit provider-unification prerequisite required by PR #2786.

Related issues

No related issues found above the similarity threshold.