Skip to content

Using zig build on macOS fails to fetch remote repositories through a proxy. #25996

@xuanluoya

Description

@xuanluoya

Zig Version

0.15.2 brew, the latest

Steps to Reproduce and Observed Behavior

Just use zig build in any Zig project that requires remote packages.

Expected Behavior

Just use zig build for any

build.zig.zon:8:20: error: unable to discover remote git server capabilities: HttpConnectionClosing
            .url = "git+https://github.com/Hejsil/zig-clap.git#5289e0753cd274d65344bef1c114284c633536ea",

I tried to remove https and use http

build.zig.zon:8:20: error: unable to discover remote git server capabilities: HttpConnectionClosing
            .url = "git+http://github.com/Hejsil/zig-clap.git#5289e0753cd274d65344bef1c114284c633536ea",
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Still not working. This problem has actually existed for a long time, present since the early versions of the package manager. This is also one of the reasons blocking me from learning Zig. I've been trying to solve it, but haven't found a solution. It seems Zig will never use a proxy channel...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions