-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Problem
The Zig build system's package manager does not respect the standard HTTP_PROXY / HTTPS_PROXY environment variables. When running inside the AWF firewall container, Zig's dependency downloads fail because they attempt direct connections instead of routing through the Squid proxy.
Details
Zig uses its own HTTP client implementation for package fetching (in build.zig.zon files), which bypasses the system proxy settings. This means:
zig buildfails when it tries to fetch dependencies- The iptables NAT rules redirect the traffic to Squid, but Zig's HTTP client doesn't send proper CONNECT requests
- The connection fails or times out
Possible Workarounds
- Transparent proxy mode: Configure Squid for transparent proxying of Zig traffic (may require SSL bump)
- Pre-fetch dependencies: Cache Zig packages in the container or use a local mirror
- Upstream fix: File an issue with Zig to support
HTTP_PROXYenvironment variables
Impact
Affects Zig projects that use build.zig.zon for dependency management (increasingly common in the Zig ecosystem).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.