hello, im having issues related to the package management:
when running:
zig fetch --save https://gitlab.com/bztsrc/scalable-font2/-/archive/36ea8a3cea5cd4a2ca5cc292978da9c986f3958f/scalable-font2-36ea8a3cea5cd4a2ca5cc292978da9c986f3958f.tar.gz
i get this error:
error: unable to connect to server: TlsInitializationFailed
im on windows 11 with zig 0.14.0-dev.1951+857383689 if that helps
have a good day!
1 Like
gonzo
October 20, 2024, 2:00pm
2
Zig’s stdlib only supports some versions of TLS (1.1 I believe). You are probably trying to connect to a site that requires a higher version. This is a known limitation and there are of course plans to overcome it, but I don’t know what the plans are exactly.
dimdin
October 20, 2024, 2:35pm
3
Hello @prettypeasant
welcome to ziggit
It is a 0.14.0-dev bug.
You can use zig 0.13.0 to fetch the dependency.
You must also add a name after save flag (--save=package-name) because there is no build.zig.zon that specifies the package name.
1 Like
dimdin:
It is a 0.14.0-dev bug.
If this is true, has it been reported? A search for gitlab turns up nothing.
EDIT: Maybe std.http.Client: unable to establish tls connection to cloudflare servers · Issue #21747 · ziglang/zig · GitHub ?
1 Like
dimdin
October 21, 2024, 8:56am
6
It is a regression and gitlab.com IP address is owned by Cloudflare. Yes, it sounds like #21747
1 Like
dimdin
November 8, 2024, 8:34pm
7
Using zig version 0.14.0-dev.2198+e5f5229fd it works.
#21747 is resolved.
2 Likes
plaukiu
January 16, 2026, 10:00am
8
looks like it’s back in the field, boys. getting TlsInitializationFailed for a gitlab repo on 0.16.0-dev.2145+e25b1384
1 Like
probably an exciting new bug introduced by the new Io code
plaukiu
January 16, 2026, 6:31pm
10
as a matter of fact, no. it errors out on self-hosted gitlab repos, not those in gitlab.com . weird!
anyway, an issue has been filed.