[Returned for revision] SE-0549: Package Manager HTTP Proxy Configuration

Hello Swift community,

The review of SE-0549 ran from September 14th to September 28th, 2026 and the proposal has been returned for revision.

The community's feedback in the review thread was light. The ESG agreed that SwiftPM should work in environments that require a proxy and that it should respect both the standard proxy environment variables and the proxy settings provided by the operating system. However, reviewers had concerns with the proposed approach. In particular, the proposal prescribes implementation details that would limit how SwiftPM performs networking in the future.

We think a layered proxy configuration makes sense here. A developer should be able to set a proxy for a single invocation through the command line or environment variables, override it for a single project, and set a default for all projects at the user level. This is an approach that other package managers have taken as well, for example Cargo, npm, pip, and Gradle, which all allow a proxy to be configured at multiple levels and overridden for a single invocation. When none of these are provided, SwiftPM should fall back to the proxy configuration of the operating system.

The review also raised the question of whether this proxy configuration should apply to source control dependencies. We discussed this and don't believe it should. SwiftPM resolves source control dependencies by invoking git, and Git's own configuration and the standard proxy environment variables already work for those operations. Overriding them from SwiftPM would interfere with configuration that developers have intentionally set up for Git. If in a future version SwiftPM adopts a Swift implementation of Git that runs within SwiftPM, then the proxy configuration should apply to those operations as well.

A revised proposal should describe the configuration sources, their precedence, and the rules for which hosts bypass the proxy. It should define these in terms of the behavior developers can observe, without prescribing how SwiftPM implements them. It should also consider whether proxy settings belong in a broader network configuration rather than in a dedicated file. It should compare the design to how other package managers approach proxy configuration. Finally, it should discuss the security implications of project-level proxy configuration that is checked into a repository.

As always, I'd like to thank the author for their work on this proposal and the community for its thoughtful contributions during the pitch and review. The community's involvement helps to make Swift a better language.

Franz
Review Manager

2 Likes