← Back to issue list

Forward proxy variables into core24 build environments

View original Github issue

Metadata

Project
snapcraft
Number
#4943
Type
issue
State
closed
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Forwarded http_proxy, https_proxy, and no_proxy variables into core24 build environments. Resolved by merging pull request #4973 into the snapcraft repository.

Suggested action:

No scores available.

Issue body

### What needs to get done Call [`craft_application.services.ProviderService.setup()`](https://github.com/canonical/craft-application/blob/445d5146e20ca6157c59a15112d8f81ac4230203/craft_application/services/provider.py#L90) to forward `http_proxy`, `https_proxy`, and `no_proxy` into core24 build environments. ```diff diff --git a/snapcraft/services/provider.py b/snapcraft/services/provider.py index 2ed2b590..e28b730c 100644 @@ -26,6 +26,12 @@ class Provider(ProviderService): @overrides def setup(self) -> None: + """Snapcraft-specific setup.""" + super().setup() + if build_info := os.getenv("SNAPCRAFT_BUILD_INFO"): self.environment["SNAPCRAFT_BUILD_INFO"] = build_info if image_info := os.getenv("SNAPCRAFT_IMAGE_INFO"): ``` ### Why it needs to get done - To forward proxy variables from the host into the build environment - Parity with core22

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Forwarded http_proxy, https_proxy, and no_proxy variables into core24 build environments. Resolved by merging pull request #4973 into the snapcraft repository.
qwen/qwen3.6-35b-a3b Resolved via PR #4973. The fix calls super().setup() in snapcraft/services/provider.py to forward http_proxy, https_proxy, and no_proxy variables into core24 build environments, matching core22 behavior.
qwen/qwen3.6-35b-a3b Resolved by merging PR #4973. The fix calls super().setup() in the Provider service to forward http_proxy, https_proxy, and no_proxy into core24 build environments, inheriting behavior from craft_application and ensuring parity with core22.
qwen3.6-35b-a3b-mtp-q6 Resolved via merged pull request #4973. The provider service now calls super().setup() to forward http_proxy, https_proxy, and no_proxy into core24 build environments, matching core22 behavior.
qwen3.6-35b-a3b-mtp-q6 Resolved via merged pull request #4973. The fix calls the parent ProviderService setup method to forward http_proxy, https_proxy, and no_proxy from the host into core24 build environments.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#4973 fix(provider): forward proxy variables to core24 build environments snapcraft merged Merged. Forwards http_proxy, https_proxy, and no_proxy variables into core24 build environments. Includes a regression test and bumps craft-application to 4.1.0. Approved by two reviewers.
78%