Issues with gitlab and the package manager

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

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.

Hello @prettypeasant
welcome to ziggit :slight_smile:

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

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

also maybe

It is a regression and gitlab.com IP address is owned by Cloudflare. Yes, it sounds like #21747

1 Like

Using zig version 0.14.0-dev.2198+e5f5229fd it works.
#21747 is resolved.

1 Like