ziglang/zig
259
6.0k
Fork
You've already forked zig
771

std.Io.net: fix connectUnix compilation issue #31154

Closed
Ghost wants to merge 18 commits from (deleted):master into master
pull from: (deleted):master
merge into: ziglang:master
ziglang:master
ziglang:elfv2
ziglang:spork8
ziglang:restricted
ziglang:0.16.x
ziglang:panic-rewrite
ziglang:parking-futex-lockfree
ziglang:windows-Io-cleanup
ziglang:Io-watch
ziglang:ParseCommandLineOptions
ziglang:windows-async-files
ziglang:poll-ring
ziglang:debug-file-leaks-differently
ziglang:debug-file-leaks
ziglang:ProcessPrng
ziglang:elfv2-dyn
ziglang:jobserver
ziglang:threadtheft
ziglang:io-threaded-no-queue
ziglang:0.15.x
ziglang:Io.net
ziglang:comptime-allocator
ziglang:restricted-function-pointers
ziglang:cli
ziglang:wasm-linker-writer
ziglang:wrangle-writer-buffering
ziglang:sha1-stream
ziglang:async-await-demo
ziglang:fixes
ziglang:0.14.x
ziglang:ast-node-methods
ziglang:macos-debug-info
ziglang:make-vs-configure
ziglang:fuzz-macos
ziglang:sans-aro
ziglang:ArrayList-reserve
ziglang:incr-bug
ziglang:llvm-ir-nosanitize-metadata
ziglang:ci-tarballs
ziglang:ci-scripts
ziglang:threadpool
ziglang:0.12.x
ziglang:new-pkg-hash
ziglang:json-diagnostics
ziglang:more-doctests
ziglang:rework-comptime-mutation
ziglang:0.11.x
ziglang:ci-perf-comment
ziglang:stage2-async
ziglang:0.10.x
ziglang:autofix
ziglang:0.9.x
ziglang:aro
ziglang:hcs
ziglang:0.8.x
ziglang:0.7.x

For the issue #31135.
Below is a test example demonstrating how this PR is intended to be used

varthreaded:std.Io.Threaded=.init(arena_alloc.allocator(),.{.environ=init.minimal.environ});deferthreaded.deinit();constthread_io=threaded.io();constallocator=arena_alloc.allocator();varclient=std.http.Client{.allocator=arena_alloc.allocator(),.io=thread_io,};constunix_addr=("/Users/septemlee/.orbstack/run/docker.sock");consthost:std.Io.net.HostName=try.init("localhost");constconn=tryclient.connectUnix(host,unix_addr);varreq=tryclient.request(.GET,trystd.Uri.parse("http://localhost/v1.50/containers/json"),.{.connection=conn,});deferreq.deinit();constredirect_buf=tryallocator.alloc(u8,2048);deferallocator.free(redirect_buf);tryreq.sendBodiless();varrsp=tryreq.receiveHead(redirect_buf);constreader_buf=tryallocator.alloc(u8,2048);deferallocator.free(reader_buf);varreader=rsp.reader(reader_buf);constbody=tryreader.readAlloc(allocator,req.response_content_length.?);deferallocator.free(body);std.debug.print("{s}\n",.{body});

Output:

[{"Id":"f59b4ad80fe72cdf417d1b05d1930be6cce255c05375cd7bf3771ee4f9db89ca","Names":["/redis"],"Image":"4bea5ef8e69d","ImageID":"sha256:4bea5ef8e69dac80064fef357bc6b113c2d79f3cbccf3b0f8501045fc63bd596","Command":"docker-entrypoint.sh redis-server","Created":1769052743,"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":6379,"Type":"tcp"},{"IP":"::","PrivatePort":6379,"PublicPort":6379,"Type":"tcp"}],"Labels":{},"State":"running","Status":"Up 2 hours","HostConfig":{"NetworkMode":"bridge"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"MacAddress":"a6:bc:60:60:fb:3b","DriverOpts":null,"GwPriority":0,"NetworkID":"674d7bf8063317298f983a8c202bbf67a638d1cd22d74f775d150bb2c9e6c24b","EndpointID":"7201ac6a0f3171e8efd6f1ffcbd667339b61aa52a80e21857b4235315344ed62","Gateway":"192.168.215.1","IPAddress":"192.168.215.2","IPPrefixLen":24,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"DNSNames":null}}},"Mounts":[{"Type":"volume","Name":"ea281b91a037a63cda2c362f4dcf31a2faa7eddd578d3b0a4b706686cf5f5414","Source":"","Destination":"/data","Driver":"local","Mode":"","RW":true,"Propagation":""}]}]
(削除) # HostName equality check
/// Domain names are case-insensitive (RFC 5890, Section 2.3.2.4)pubfneql(a:HostName,b:HostName)bool{returnstd.ascii.eqlIgnoreCase(a.bytes,b.bytes);}

This behavior mainly affects findConnection.
If the comparison only checks host.bytes, then when multiple different Unix domain socket paths are involved, it seems possible that an existing connection could be reused unintentionally.

That said, the comment and RFC 5890 clearly scope this comparison to domain names. Since Unix domain sockets are not mentioned in the RFC, I wasn’t sure whether the intention is to keep this logic strictly domain-based, even for Unix connections.

(削除ここまで)

(削除) I’m not sure whether adding Unix address–specific information into HostName is the correct or intended approach. I’d appreciate clarification on whether this aligns with the expected design.
(削除ここまで)

About std.http.Client.request

From reading the implementation, request internally calls connect, which currently handles connectTcp and connectProxied, but not connectUnix.

In the example above, I therefore pass the connection explicitly via RequestOptions.connection to ensure the Unix socket connection is used.

I’m not sure if this is the intended usage pattern (i.e. Unix connections are expected to be established and managed by the caller), or if support for connectUnix inside request is something that may be added later. I’d like to confirm the intended design here before going further.

For the issue #31135. Below is a test example demonstrating how this PR is intended to be used ```zig var threaded: std.Io.Threaded = .init(arena_alloc.allocator(), .{ .environ = init.minimal.environ }); defer threaded.deinit(); const thread_io = threaded.io(); const allocator = arena_alloc.allocator(); var client = std.http.Client{ .allocator = arena_alloc.allocator(), .io = thread_io, }; const unix_addr = ("/Users/septemlee/.orbstack/run/docker.sock"); const host: std.Io.net.HostName = try .init("localhost"); const conn = try client.connectUnix(host, unix_addr); var req = try client.request(.GET, try std.Uri.parse("http://localhost/v1.50/containers/json"), .{ .connection = conn, }); defer req.deinit(); const redirect_buf = try allocator.alloc(u8, 2048); defer allocator.free(redirect_buf); try req.sendBodiless(); var rsp = try req.receiveHead(redirect_buf); const reader_buf = try allocator.alloc(u8, 2048); defer allocator.free(reader_buf); var reader = rsp.reader(reader_buf); const body = try reader.readAlloc(allocator, req.response_content_length.?); defer allocator.free(body); std.debug.print("{s}\n", .{body}); ``` Output: ``` [{"Id":"f59b4ad80fe72cdf417d1b05d1930be6cce255c05375cd7bf3771ee4f9db89ca","Names":["/redis"],"Image":"4bea5ef8e69d","ImageID":"sha256:4bea5ef8e69dac80064fef357bc6b113c2d79f3cbccf3b0f8501045fc63bd596","Command":"docker-entrypoint.sh redis-server","Created":1769052743,"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":6379,"Type":"tcp"},{"IP":"::","PrivatePort":6379,"PublicPort":6379,"Type":"tcp"}],"Labels":{},"State":"running","Status":"Up 2 hours","HostConfig":{"NetworkMode":"bridge"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"MacAddress":"a6:bc:60:60:fb:3b","DriverOpts":null,"GwPriority":0,"NetworkID":"674d7bf8063317298f983a8c202bbf67a638d1cd22d74f775d150bb2c9e6c24b","EndpointID":"7201ac6a0f3171e8efd6f1ffcbd667339b61aa52a80e21857b4235315344ed62","Gateway":"192.168.215.1","IPAddress":"192.168.215.2","IPPrefixLen":24,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"DNSNames":null}}},"Mounts":[{"Type":"volume","Name":"ea281b91a037a63cda2c362f4dcf31a2faa7eddd578d3b0a4b706686cf5f5414","Source":"","Destination":"/data","Driver":"local","Mode":"","RW":true,"Propagation":""}]}] ``` <s> # HostName equality check ```zig /// Domain names are case-insensitive (RFC 5890, Section 2.3.2.4) pub fn eql(a: HostName, b: HostName) bool { return std.ascii.eqlIgnoreCase(a.bytes, b.bytes); } ``` This behavior mainly affects `findConnection`. If the comparison only checks `host.bytes`, then when multiple different Unix domain socket paths are involved, it seems possible that an existing connection could be reused unintentionally. That said, the comment and RFC 5890 clearly scope this comparison to domain names. Since Unix domain sockets are not mentioned in the RFC, I wasn’t sure whether the intention is to keep this logic strictly domain-based, even for Unix connections. I’m not sure whether adding Unix address–specific information into `HostName` is the correct or intended approach. I’d appreciate clarification on whether this aligns with the expected design. </s> # About `std.http.Client.request` From reading the implementation, `request` internally calls `connect`, which currently handles `connectTcp` and `connectProxied`, but not `connectUnix`. In the example above, I therefore pass the connection explicitly via `RequestOptions.connection` to ensure the Unix socket connection is used. I’m not sure if this is the intended usage pattern (i.e. Unix connections are expected to be established and managed by the caller), or if support for `connectUnix` inside `request` is something that may be added later. I’d like to confirm the intended design here before going further.
std.Io.net: fix up connectUnix compliation issue.
Some checks failed
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-netbsd-release (pull_request) Successful in 31m23s
ci / aarch64-macos-release (pull_request) Successful in 33m54s
ci / x86_64-freebsd-release (pull_request) Successful in 36m15s
ci / x86_64-netbsd-debug (pull_request) Successful in 38m49s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m12s
ci / x86_64-windows-debug (pull_request) Successful in 47m34s
ci / x86_64-windows-release (pull_request) Successful in 48m15s
ci / x86_64-openbsd-debug (pull_request) Successful in 57m23s
ci / x86_64-openbsd-release (pull_request) Successful in 48m3s
ci / aarch64-macos-debug (pull_request) Successful in 1h11m51s
ci / aarch64-linux-release (pull_request) Successful in 1h28m30s
ci / x86_64-linux-debug (pull_request) Successful in 1h9m5s
ci / aarch64-linux-debug (pull_request) Successful in 2h8m40s
ci / s390x-linux-release (pull_request) Successful in 1h24m27s
ci / powerpc64le-linux-release (pull_request) Successful in 1h27m54s
ci / s390x-linux-debug (pull_request) Successful in 2h16m32s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h20m9s
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
b1a3f8eb83
Merge branch 'master' into master
Some checks failed
ci / x86_64-netbsd-release (pull_request) Successful in 40m4s
ci / x86_64-freebsd-release (pull_request) Successful in 43m10s
ci / x86_64-netbsd-debug (pull_request) Successful in 45m12s
ci / x86_64-freebsd-debug (pull_request) Successful in 46m40s
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
4a330631df
fix migration issue
All checks were successful
ci / x86_64-netbsd-release (pull_request) Successful in 36m22s
ci / x86_64-freebsd-release (pull_request) Successful in 38m27s
ci / x86_64-netbsd-debug (pull_request) Successful in 41m55s
ci / x86_64-windows-release (pull_request) Successful in 42m23s
ci / x86_64-freebsd-debug (pull_request) Successful in 43m56s
ci / x86_64-windows-debug (pull_request) Successful in 52m30s
ci / x86_64-openbsd-release (pull_request) Successful in 52m11s
ci / aarch64-macos-release (pull_request) Successful in 59m5s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h0m59s
ci / aarch64-macos-debug (pull_request) Successful in 1h11m1s
ci / aarch64-linux-release (pull_request) Successful in 1h26m33s
ci / x86_64-linux-debug (pull_request) Successful in 47m16s
ci / aarch64-linux-debug (pull_request) Successful in 2h8m28s
ci / s390x-linux-release (pull_request) Successful in 1h19m32s
ci / s390x-linux-debug (pull_request) Successful in 2h29m27s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h17m18s
ci / x86_64-linux-release (pull_request) Successful in 3h38m24s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / powerpc64le-linux-debug (pull_request) Successful in 3h39m39s
ci / powerpc64le-linux-release (pull_request) Successful in 1h38m47s
a273753066
Merge branch 'master' into master
All checks were successful
ci / aarch64-macos-release (pull_request) Successful in 37m23s
ci / x86_64-netbsd-release (pull_request) Successful in 33m27s
ci / x86_64-freebsd-release (pull_request) Successful in 35m25s
ci / x86_64-freebsd-debug (pull_request) Successful in 44m29s
ci / x86_64-netbsd-debug (pull_request) Successful in 47m18s
ci / x86_64-windows-debug (pull_request) Successful in 48m24s
ci / x86_64-windows-release (pull_request) Successful in 49m33s
ci / aarch64-macos-debug (pull_request) Successful in 1h22m6s
ci / x86_64-openbsd-release (pull_request) Successful in 55m59s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h14m59s
ci / aarch64-linux-release (pull_request) Successful in 1h31m2s
ci / x86_64-linux-debug (pull_request) Successful in 1h23m17s
ci / aarch64-linux-debug (pull_request) Successful in 2h10m20s
ci / s390x-linux-release (pull_request) Successful in 1h27m8s
ci / s390x-linux-debug (pull_request) Successful in 2h6m31s
ci / powerpc64le-linux-release (pull_request) Successful in 1h52m48s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-linux-release (pull_request) Successful in 2h40m35s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h26m57s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h42m58s
ff7ee6b9e2
Merge branch 'master' into master
All checks were successful
ci / x86_64-freebsd-release (pull_request) Successful in 31m55s
ci / aarch64-macos-release (pull_request) Successful in 32m4s
ci / x86_64-netbsd-release (pull_request) Successful in 31m18s
ci / x86_64-freebsd-debug (pull_request) Successful in 36m37s
ci / x86_64-windows-debug (pull_request) Successful in 39m56s
ci / x86_64-windows-release (pull_request) Successful in 41m32s
ci / x86_64-openbsd-release (pull_request) Successful in 42m2s
ci / x86_64-netbsd-debug (pull_request) Successful in 41m58s
ci / aarch64-macos-debug (pull_request) Successful in 44m39s
ci / x86_64-openbsd-debug (pull_request) Successful in 54m7s
ci / aarch64-linux-release (pull_request) Successful in 1h26m58s
ci / s390x-linux-release (pull_request) Successful in 1h28m54s
ci / x86_64-linux-debug (pull_request) Successful in 1h31m47s
ci / powerpc64le-linux-release (pull_request) Successful in 1h29m34s
ci / s390x-linux-debug (pull_request) Successful in 2h6m40s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h12m30s
ci / aarch64-linux-debug (pull_request) Successful in 2h19m13s
ci / x86_64-linux-release (pull_request) Successful in 2h22m58s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / powerpc64le-linux-debug (pull_request) Successful in 3h52m11s
74c3bcdb37
Merge branch 'master' into master
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 26m58s
ci / x86_64-freebsd-release (pull_request) Successful in 33m39s
ci / x86_64-netbsd-release (pull_request) Successful in 34m14s
ci / x86_64-netbsd-debug (pull_request) Successful in 39m15s
ci / x86_64-freebsd-debug (pull_request) Successful in 39m49s
ci / x86_64-windows-release (pull_request) Successful in 52m27s
ci / x86_64-openbsd-release (pull_request) Successful in 52m42s
ci / x86_64-windows-debug (pull_request) Successful in 56m45s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h0m17s
ci / aarch64-macos-debug (pull_request) Successful in 1h2m26s
ci / aarch64-linux-release (pull_request) Successful in 1h29m30s
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
98e46ce6d1
Merge branch 'master' into master
All checks were successful
ci / aarch64-macos-release (pull_request) Successful in 31m3s
ci / x86_64-netbsd-release (pull_request) Successful in 34m17s
ci / x86_64-freebsd-release (pull_request) Successful in 35m16s
ci / x86_64-netbsd-debug (pull_request) Successful in 39m34s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m42s
ci / x86_64-windows-release (pull_request) Successful in 48m0s
ci / x86_64-openbsd-release (pull_request) Successful in 51m30s
ci / x86_64-windows-debug (pull_request) Successful in 52m18s
ci / aarch64-macos-debug (pull_request) Successful in 55m11s
ci / x86_64-openbsd-debug (pull_request) Successful in 59m31s
ci / aarch64-linux-release (pull_request) Successful in 1h27m46s
ci / x86_64-linux-debug (pull_request) Successful in 1h5m42s
ci / aarch64-linux-debug (pull_request) Successful in 2h9m44s
ci / s390x-linux-debug (pull_request) Successful in 2h44m55s
ci / powerpc64le-linux-release (pull_request) Successful in 1h46m53s
ci / s390x-linux-release (pull_request) Successful in 1h45m47s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h32m24s
ci / x86_64-linux-release (pull_request) Successful in 2h40m10s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h14m9s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
635eb02c62
Merge branch 'master' into master
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 31m25s
ci / x86_64-netbsd-release (pull_request) Successful in 32m43s
ci / x86_64-freebsd-debug (pull_request) Successful in 36m59s
ci / x86_64-netbsd-debug (pull_request) Successful in 39m37s
ci / x86_64-openbsd-release (pull_request) Successful in 40m21s
ci / x86_64-windows-release (pull_request) Successful in 44m10s
ci / aarch64-macos-release (pull_request) Successful in 48m52s
ci / x86_64-windows-debug (pull_request) Successful in 50m43s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-linux-debug (pull_request) Successful in 53m30s
ci / x86_64-openbsd-debug (pull_request) Successful in 57m8s
ci / aarch64-macos-debug (pull_request) Successful in 1h27m7s
ci / aarch64-linux-release (pull_request) Successful in 1h27m4s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
aedf855cea
Merge branch 'master' into master
All checks were successful
ci / x86_64-netbsd-release (pull_request) Successful in 37m8s
ci / x86_64-netbsd-debug (pull_request) Successful in 42m8s
ci / aarch64-macos-release (pull_request) Successful in 47m6s
ci / x86_64-freebsd-release (pull_request) Successful in 34m4s
ci / x86_64-freebsd-debug (pull_request) Successful in 37m45s
ci / aarch64-macos-debug (pull_request) Successful in 1h8m33s
ci / x86_64-windows-debug (pull_request) Successful in 42m23s
ci / x86_64-windows-release (pull_request) Successful in 49m46s
ci / x86_64-openbsd-release (pull_request) Successful in 43m14s
ci / x86_64-openbsd-debug (pull_request) Successful in 54m25s
ci / aarch64-linux-release (pull_request) Successful in 1h27m10s
ci / aarch64-linux-debug (pull_request) Successful in 2h17m1s
ci / x86_64-linux-debug (pull_request) Successful in 45m5s
ci / powerpc64le-linux-release (pull_request) Successful in 1h33m43s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h44m32s
ci / s390x-linux-debug (pull_request) Successful in 2h30m7s
ci / x86_64-linux-release (pull_request) Successful in 2h55m33s
ci / s390x-linux-release (pull_request) Successful in 2h44m22s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h24m48s
2d06929db4
Merge branch 'master' into master
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-freebsd-release (pull_request) Successful in 31m37s
ci / x86_64-netbsd-release (pull_request) Successful in 30m59s
ci / x86_64-openbsd-release (pull_request) Successful in 38m34s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m19s
ci / aarch64-macos-release (pull_request) Successful in 40m33s
ci / x86_64-netbsd-debug (pull_request) Successful in 40m58s
ci / x86_64-windows-release (pull_request) Successful in 43m22s
ci / x86_64-windows-debug (pull_request) Successful in 47m49s
ci / aarch64-macos-debug (pull_request) Successful in 53m52s
ci / x86_64-openbsd-debug (pull_request) Successful in 56m12s
ci / x86_64-linux-debug (pull_request) Successful in 57m50s
ci / powerpc64le-linux-release (pull_request) Successful in 1h24m38s
ci / aarch64-linux-release (pull_request) Successful in 1h37m24s
ci / s390x-linux-release (pull_request) Successful in 2h3m39s
ci / s390x-linux-debug (pull_request) Successful in 2h13m28s
ci / aarch64-linux-debug (pull_request) Successful in 2h29m6s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h30m59s
ci / x86_64-linux-release (pull_request) Successful in 4h16m9s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h22m55s
a710df53eb
Merge branch 'master' into master
All checks were successful
ci / x86_64-freebsd-debug (pull_request) Successful in 50m0s
ci / aarch64-macos-release (pull_request) Successful in 1h1m38s
ci / x86_64-netbsd-release (pull_request) Successful in 34m42s
ci / x86_64-freebsd-release (pull_request) Successful in 31m30s
ci / aarch64-macos-debug (pull_request) Successful in 1h17m52s
ci / x86_64-netbsd-debug (pull_request) Successful in 46m51s
ci / x86_64-windows-debug (pull_request) Successful in 57m38s
ci / x86_64-windows-release (pull_request) Successful in 51m46s
ci / x86_64-openbsd-release (pull_request) Successful in 53m57s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h1m49s
ci / aarch64-linux-release (pull_request) Successful in 1h30m8s
ci / aarch64-linux-debug (pull_request) Successful in 2h19m41s
ci / x86_64-linux-debug (pull_request) Successful in 1h22m23s
ci / powerpc64le-linux-release (pull_request) Successful in 1h27m8s
ci / s390x-linux-release (pull_request) Successful in 2h28m29s
ci / x86_64-linux-release (pull_request) Successful in 3h1m11s
ci / s390x-linux-debug (pull_request) Successful in 3h29m37s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h36m56s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h35m30s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
cf79b4997c
Merge branch 'master' into master
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-freebsd-release (pull_request) Successful in 33m18s
ci / x86_64-netbsd-release (pull_request) Successful in 31m27s
ci / x86_64-netbsd-debug (pull_request) Successful in 39m30s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m6s
ci / aarch64-macos-release (pull_request) Successful in 42m32s
ci / x86_64-openbsd-release (pull_request) Successful in 42m13s
ci / x86_64-openbsd-debug (pull_request) Successful in 48m21s
ci / aarch64-macos-debug (pull_request) Successful in 58m30s
ci / x86_64-linux-debug (pull_request) Successful in 1h15m50s
ci / powerpc64le-linux-release (pull_request) Successful in 1h25m46s
ci / aarch64-linux-release (pull_request) Successful in 1h26m30s
ci / s390x-linux-release (pull_request) Successful in 1h37m17s
ci / aarch64-linux-debug (pull_request) Successful in 2h13m53s
ci / x86_64-windows-release (pull_request) Successful in 49m28s
ci / x86_64-windows-debug (pull_request) Successful in 58m37s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h22m8s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h53m16s
ci / x86_64-linux-release (pull_request) Successful in 3h55m0s
ci / s390x-linux-debug (pull_request) Successful in 4h5m30s
4ac384ddfc
Merge branch 'master' into master
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-freebsd-release (pull_request) Successful in 31m14s
ci / x86_64-netbsd-release (pull_request) Successful in 31m45s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m25s
ci / x86_64-netbsd-debug (pull_request) Successful in 42m50s
ci / x86_64-windows-debug (pull_request) Successful in 43m36s
ci / x86_64-windows-release (pull_request) Successful in 44m19s
ci / x86_64-openbsd-release (pull_request) Successful in 44m6s
ci / aarch64-macos-release (pull_request) Successful in 46m35s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m23s
ci / aarch64-macos-debug (pull_request) Successful in 1h1m1s
ci / x86_64-linux-debug (pull_request) Successful in 1h7m17s
ci / aarch64-linux-release (pull_request) Successful in 1h26m40s
ci / powerpc64le-linux-release (pull_request) Successful in 1h45m31s
ci / s390x-linux-release (pull_request) Successful in 2h6m35s
ci / aarch64-linux-debug (pull_request) Successful in 2h15m20s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h34m33s
ci / s390x-linux-debug (pull_request) Successful in 3h11m21s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h33m35s
ci / x86_64-linux-release (pull_request) Successful in 3h52m45s
9247b3ec1c
Merge branch 'master' into master
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-netbsd-release (pull_request) Successful in 30m51s
ci / x86_64-freebsd-release (pull_request) Successful in 31m4s
ci / aarch64-macos-release (pull_request) Successful in 35m44s
ci / x86_64-netbsd-debug (pull_request) Successful in 36m12s
ci / x86_64-freebsd-debug (pull_request) Successful in 37m33s
ci / x86_64-windows-debug (pull_request) Successful in 42m42s
ci / x86_64-windows-release (pull_request) Successful in 43m37s
ci / x86_64-openbsd-debug (pull_request) Successful in 45m37s
ci / x86_64-openbsd-release (pull_request) Successful in 46m31s
ci / aarch64-macos-debug (pull_request) Successful in 51m11s
ci / x86_64-linux-debug (pull_request) Successful in 1h26m26s
ci / powerpc64le-linux-release (pull_request) Successful in 1h33m1s
ci / aarch64-linux-release (pull_request) Successful in 1h34m10s
ci / x86_64-linux-release (pull_request) Successful in 1h34m34s
ci / s390x-linux-release (pull_request) Successful in 1h43m10s
ci / aarch64-linux-debug (pull_request) Successful in 2h31m7s
ci / s390x-linux-debug (pull_request) Successful in 2h44m54s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h23m40s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h20m5s
60bfe46a5d
andrewrk left a comment
Copy link

Thank you for the patch. Unfortunately I don't think this is the right way to fix the problem.

Thank you for the patch. Unfortunately I don't think this is the right way to fix the problem.
@ -860,0 +860,4 @@
pubfnhostname(ua:UnixAddress)HostName{
// On Unix, the hostname for a Unix domain socket is always
// "localhost" because it is only accessible from the local machine.
returnHostName{
Owner
Copy link

return .{

`return .{`

Remove hostname method after implemented new approach.

Remove `hostname` method after implemented new approach.
@ -20,0 +20,4 @@
/// Optional Unix domain socket address path. Externally managed memory.
/// When set, indicates this host should be reached via a Unix socket
/// rather than a TCP/IP connection.
unix_addr:?[]constu8=null,
Owner
Copy link

no, a HostName cannot be a unix address.

no, a HostName cannot be a unix address.

Remove unix_addr from HostName field after implemented new approach.

Remove `unix_addr` from `HostName` field after implemented new approach.

Thank you for the clarification.
I understand that my previous approach was not aligned with the intended direction.

After taking another look, I’m considering an alternative approach that might fit better within the current design. Specifically, I’m thinking about extending ConnectionPool.Criteria by adding something like:

pubconstCriteria=struct{host:HostName,port:u16,protocol:Protocol,unix_path:?[]constu8=null,};

The idea would be to let the connection pool distinguish Unix domain socket connections based on unix_path, rather than introducing Unix-specific logic into HostName.

That said, I’m not entirely sure whether ConnectionPool.Criteria is the appropriate abstraction layer for this change, or if this would align with the overall design goals. Before preparing a revised PR, I’d really appreciate your feedback on whether this direction makes more sense.

Thank you for the clarification. I understand that my previous approach was not aligned with the intended direction. After taking another look, I’m considering an alternative approach that might fit better within the current design. Specifically, I’m thinking about extending `ConnectionPool.Criteria` by adding something like: ```zig pub const Criteria = struct { host: HostName, port: u16, protocol: Protocol, unix_path: ?[]const u8 = null, }; ``` The idea would be to let the connection pool distinguish Unix domain socket connections based on `unix_path`, rather than introducing Unix-specific logic into `HostName`. That said, I’m not entirely sure whether `ConnectionPool.Criteria` is the appropriate abstraction layer for this change, or if this would align with the overall design goals. Before preparing a revised PR, I’d really appreciate your feedback on whether this direction makes more sense.
Ghost force-pushed master from 98107e753b
Some checks failed
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
to d072af903f
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
2026年02月26日 03:51:23 +01:00
Compare
Merge branch 'master' into master
All checks were successful
ci / x86_64-netbsd-release (pull_request) Successful in 30m44s
ci / x86_64-freebsd-release (pull_request) Successful in 32m8s
ci / aarch64-macos-release (pull_request) Successful in 36m24s
ci / x86_64-windows-release (pull_request) Successful in 37m8s
ci / x86_64-netbsd-debug (pull_request) Successful in 37m47s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m13s
ci / x86_64-openbsd-release (pull_request) Successful in 40m50s
ci / x86_64-windows-debug (pull_request) Successful in 43m26s
ci / x86_64-openbsd-debug (pull_request) Successful in 49m12s
ci / aarch64-macos-debug (pull_request) Successful in 56m36s
ci / x86_64-linux-debug (pull_request) Successful in 1h6m9s
ci / aarch64-linux-release (pull_request) Successful in 1h42m57s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h6m54s
ci / aarch64-linux-debug (pull_request) Successful in 2h27m56s
ci / x86_64-linux-release (pull_request) Successful in 2h27m55s
ci / powerpc64le-linux-release (pull_request) Successful in 1h42m42s
ci / s390x-linux-release (pull_request) Successful in 1h23m54s
ci / s390x-linux-debug (pull_request) Successful in 2h13m13s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h13m6s
ci / loongarch64-linux-release (pull_request) Successful in 2h3m33s
ci / loongarch64-linux-debug (pull_request) Successful in 2h46m41s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
a872498898

I’ve implemented a revised solution based on the new approach.

In this version, I added an optional unix_path field to both Connection.Plain and Connection.Tls. I also updated findConnection to include unix_path in the matching criteria, so that Unix domain socket connections can be reused safely and distinguished correctly within the pool.

My intention with this change is to keep HostName strictly domain-related, while handling Unix-specific differentiation at the connection level. I’d really appreciate it if you could take a look and let me know whether this aligns better with the intended design, or if you would prefer a different abstraction boundary, thanks.

Edit:

BTW: I did not modify connect itself — it currently still only handles connectTcp and connectProxied.

Would you expect connectUnix to be supported through connect as well? If so, it seems we would need to add a unix_path: ?[]const u8 parameter to connect and use it as part of the dispatch logic, for example:

// If unix_path is provided, use Unix socket connectionif(unix_path)|up|{returnclient.connectUnix(host,up);}
I’ve implemented a revised solution based on the new approach. In this version, I added an optional `unix_path` field to both `Connection.Plain` and `Connection.Tls`. I also updated `findConnection` to include `unix_path` in the matching criteria, so that Unix domain socket connections can be reused safely and distinguished correctly within the pool. My intention with this change is to keep `HostName` strictly domain-related, while handling Unix-specific differentiation at the connection level. I’d really appreciate it if you could take a look and let me know whether this aligns better with the intended design, or if you would prefer a different abstraction boundary, thanks. Edit: BTW: I did not modify `connect` itself — it currently still only handles `connectTcp` and `connectProxied`. Would you expect `connectUnix` to be supported through `connect` as well? If so, it seems we would need to add a `unix_path: ?[]const u8` parameter to `connect` and use it as part of the dispatch logic, for example: ```zig // If unix_path is provided, use Unix socket connection if (unix_path) |up| { return client.connectUnix(host, up); } ```
andrewrk left a comment
Copy link

Would you expect connectUnix to be supported through connect as well?

No. I think it is reasonable for the caller of connect or connectUnix to know whether they are connecting to a host name or a unix path.

> Would you expect connectUnix to be supported through connect as well? No. I think it is reasonable for the caller of `connect` or `connectUnix` to know whether they are connecting to a host name or a unix path.
@ -78,6 +78,7 @@ pub const ConnectionPool = struct {
host:HostName,
port:u16,
protocol:Protocol,
unix_path:?[]constu8=null,
Owner
Copy link

Thank you, I think this is getting closer. However, this unix path criteria is exclusive to the other criteria. In other words you will never have a host/port and a unix path at the same time. This should be expressed in the type system.

Thank you, I think this is getting closer. However, this unix path criteria is exclusive to the other criteria. In other words you will never have a host/port and a unix path at the same time. This should be expressed in the type system.

Thanks for your guidance. I refactored the Criteria into a union(enum) to make sure that we can distinguish two different matching pattern.

Thanks for your guidance. I refactored the `Criteria` into a `union(enum)` to make sure that we can distinguish two different matching pattern.
refactor: update connection criteria to use a tagged union for host/port and unix socket
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
e78a61e98f

Understood. I refactored ConnectionPool.Criteria into a union(enum) so that we can explicitly distinguish between two different matching patterns:

  • host_base
  • unix_path

The goal is to model them as separate connection identity types rather than overloading a single structure with optional fields. This makes the matching logic more explicit and avoids mixing domain-based and Unix socket–based semantics within the same criteria.

Understood. I refactored `ConnectionPool.Criteria` into a `union(enum)` so that we can explicitly distinguish between two different matching patterns: - `host_base` - `unix_path` The goal is to model them as separate connection identity types rather than overloading a single structure with optional fields. This makes the matching logic more explicit and avoids mixing domain-based and Unix socket–based semantics within the same criteria.
Merge branch 'master' into master
All checks were successful
ci / x86_64-netbsd-release (pull_request) Successful in 39m25s
ci / x86_64-freebsd-release (pull_request) Successful in 41m15s
ci / x86_64-freebsd-debug (pull_request) Successful in 45m54s
ci / x86_64-netbsd-debug (pull_request) Successful in 46m18s
ci / x86_64-openbsd-release (pull_request) Successful in 51m55s
ci / aarch64-macos-release (pull_request) Successful in 59m51s
ci / aarch64-macos-debug (pull_request) Successful in 1h7m22s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h8m2s
ci / aarch64-linux-release (pull_request) Successful in 1h39m22s
ci / s390x-linux-release (pull_request) Successful in 1h25m15s
ci / aarch64-linux-debug (pull_request) Successful in 2h29m6s
ci / x86_64-windows-debug (pull_request) Successful in 47m38s
ci / x86_64-windows-release (pull_request) Successful in 54m3s
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m55s
ci / x86_64-linux-debug (pull_request) Successful in 1h26m15s
ci / s390x-linux-debug (pull_request) Successful in 3h16m17s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h10m3s
ci / x86_64-linux-release (pull_request) Successful in 2h19m29s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h41m14s
ci / loongarch64-linux-release (pull_request) Successful in 2h5m19s
ci / loongarch64-linux-debug (pull_request) Successful in 2h43m5s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
d9457fc7b7
andrewrk changed title from (削除) std.Io.net: fix up connectUnix compliation issue. (削除ここまで) to std.Io.net: fix connectUnix compilation issue 2026年02月27日 19:17:20 +01:00
@ -79,2 +77,2 @@
port:u16,
protocol:Protocol,
///
/// This uses a tagged union to ensure that host/port and unix_path
Owner
Copy link

This additional commentary is superfluous. You don't need to explain basic features of the programming language in comments.

This additional commentary is superfluous. You don't need to explain basic features of the programming language in comments.
@ -96,3 +104,2 @@
// Domain names are case-insensitive (RFC 5890, Section 2.3.2.4)
if(!connection.host().eql(criteria.host))continue;
// Match based on the criteria variant
Owner
Copy link

this comment is redundant with switch (criteria)

this comment is redundant with `switch (criteria)`
@ -99,0 +105,4 @@
// Match based on the criteria variant
switch(criteria){
.host_based=>|hb|{
// For host-based connections, skip any unix socket connections
Owner
Copy link

Again, extremely redundant commentary. You're not making me review LLM generated content, are you?

Again, extremely redundant commentary. You're not making me review LLM generated content, are you?
https://ziglang.org/code-of-conduct/#strict-no-llm-no-ai-policy
andrewrk closed this pull request 2026年02月27日 19:25:38 +01:00

We have hundreds of people waiting for PR reviews and I already wasted 3 rounds on you, asshole. Fuck you.

We have hundreds of people waiting for PR reviews and I already wasted 3 rounds on you, asshole. Fuck you.
All checks were successful
ci / x86_64-netbsd-release (pull_request) Successful in 39m25s
Required
Details
ci / x86_64-freebsd-release (pull_request) Successful in 41m15s
Required
Details
ci / x86_64-freebsd-debug (pull_request) Successful in 45m54s
Required
Details
ci / x86_64-netbsd-debug (pull_request) Successful in 46m18s
Required
Details
ci / x86_64-openbsd-release (pull_request) Successful in 51m55s
Required
Details
ci / aarch64-macos-release (pull_request) Successful in 59m51s
Required
Details
ci / aarch64-macos-debug (pull_request) Successful in 1h7m22s
Required
Details
ci / x86_64-openbsd-debug (pull_request) Successful in 1h8m2s
Required
Details
ci / aarch64-linux-release (pull_request) Successful in 1h39m22s
Required
Details
ci / s390x-linux-release (pull_request) Successful in 1h25m15s
Required
Details
ci / aarch64-linux-debug (pull_request) Successful in 2h29m6s
Required
Details
ci / x86_64-windows-debug (pull_request) Successful in 47m38s
Required
Details
ci / x86_64-windows-release (pull_request) Successful in 54m3s
Required
Details
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m55s
Required
Details
ci / x86_64-linux-debug (pull_request) Successful in 1h26m15s
Required
Details
ci / s390x-linux-debug (pull_request) Successful in 3h16m17s
Required
Details
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h10m3s
Required
Details
ci / x86_64-linux-release (pull_request) Successful in 2h19m29s
Required
Details
ci / powerpc64le-linux-debug (pull_request) Successful in 4h41m14s
Required
Details
ci / loongarch64-linux-release (pull_request) Successful in 2h5m19s
ci / loongarch64-linux-debug (pull_request) Successful in 2h43m5s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
abi/f32
abi/ilp32
abi/sf
accepted
This proposal is planned.
arch/21k
arch/6502
arch/aarch64
arch/alpha
arch/amdgcn
arch/arc
arch/arc32
arch/arc64
arch/arm
arch/avr
arch/bfin
arch/bpf
arch/colossus
arch/cris
arch/csky
arch/dlx
arch/epiphany
arch/fr30
arch/frv
arch/hexagon
arch/hppa
arch/hppa64
arch/ia64
arch/kalimba
arch/kvx
arch/lanai
arch/lm32
arch/loongarch32
arch/loongarch64
arch/m32r
arch/m68k
arch/m88k
arch/mcore
arch/microblaze
arch/mips
arch/mips64
arch/mmix
arch/moxie
arch/mrisc32
arch/msp430
arch/nds32
arch/ns32k
arch/nvptx
arch/or1k
arch/powerpc
arch/powerpc64
arch/propeller
arch/riscv32
arch/riscv64
arch/rl78
arch/rx
arch/s390x
arch/sh
arch/sparc
arch/sparc64
arch/spirv
arch/spu
arch/tricore
arch/v850
arch/vax
arch/vc4
arch/ve
arch/wasm
arch/x86
arch/x86_64
arch/xcore
arch/xtensa
autodoc
The web application for interactive documentation and generation of its assets.
backend/c
The C backend outputs C source code.
backend/llvm
The LLVM backend outputs an LLVM bitcode module.
backend/self-hosted
The self-hosted backends produce machine code directly.
binutils
Zig's included binary utilities: zig ar, zig dlltool, zig lib, zig ranlib, zig objcopy, and zig rc.
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
build system
The Zig build system - zig build, std.Build, the build runner, and package management.
debug info
An issue related to debug information (e.g. DWARF) produced by the Zig compiler.
docs
An issue with documentation, e.g. the language reference or standard library doc comments.
error message
This issue points out an error message that is unhelpful and should be improved.
frontend
Tokenization, parsing, AstGen, ZonGen, Sema, Legalize, and Liveness.
fuzzing
An issue related to Zig's integrated fuzz testing.
incremental
Reuse of internal compiler state for faster compilation.
lib/c
This issue relates to Zig's libc implementation and/or vendored libcs.
lib/compiler-rt
This issue relates to Zig's compiler-rt library.
lib/cxx
This issue relates to Zig's vendored libc++ and/or libc++abi.
lib/std
This issue relates to Zig's standard library.
lib/tsan
This issue relates to Zig's vendored libtsan.
lib/ubsan-rt
This issue relates to Zig's ubsan-rt library.
lib/unwind
This issue relates to Zig's vendored libunwind.
linking
Zig's integrated object file and incremental linker.
miscompilation
The compiler reports success but produces semantically incorrect code.
os/android
os/contiki
os/dragonfly
os/driverkit
os/emscripten
os/freebsd
os/fuchsia
os/haiku
os/hermit
os/hurd
os/illumos
os/ios
os/linux
os/maccatalyst
os/macos
os/managarm
os/netbsd
os/ohos
os/openbsd
os/plan9
os/redox
os/rtems
os/serenity
os/tvos
os/uefi
os/visionos
os/wasi
os/watchos
os/windows
proposal
This issue suggests language modifications. If it also has the "accepted" label then it is planned.
release notes
This issue or pull request should be mentioned in the release notes.
testing
This issue is related to testing the compiler, standard library, or other parts of Zig.
zig cc
Zig as a drop-in C-family compiler.
zig fmt
The Zig source code formatter.
zig reduce
The Zig source code reduction tool.
bounty
https://ziglang.org/news/announcing-donor-bounties
bug
Observed behavior contradicts documented or intended behavior.
contributor-friendly
This issue is limited in scope and/or knowledge of project internals.
downstream
An issue with a third-party project that uses this project.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
infra
An issue related to project infrastructure, e.g. continuous integration.
optimization
A task to improve performance and/or resource usage.
question
No questions on the issue tracker; use a community space instead.
regression
Something that used to work in a previous version stopped working
upstream
An issue with a third-party project that this project uses.
use case
Describes a real use case that is difficult or impossible, but does not propose a solution.
No labels
abi/f32
abi/ilp32
abi/sf
accepted
arch/21k
arch/6502
arch/aarch64
arch/alpha
arch/amdgcn
arch/arc
arch/arc32
arch/arc64
arch/arm
arch/avr
arch/bfin
arch/bpf
arch/colossus
arch/cris
arch/csky
arch/dlx
arch/epiphany
arch/fr30
arch/frv
arch/hexagon
arch/hppa
arch/hppa64
arch/ia64
arch/kalimba
arch/kvx
arch/lanai
arch/lm32
arch/loongarch32
arch/loongarch64
arch/m32r
arch/m68k
arch/m88k
arch/mcore
arch/microblaze
arch/mips
arch/mips64
arch/mmix
arch/moxie
arch/mrisc32
arch/msp430
arch/nds32
arch/ns32k
arch/nvptx
arch/or1k
arch/powerpc
arch/powerpc64
arch/propeller
arch/riscv32
arch/riscv64
arch/rl78
arch/rx
arch/s390x
arch/sh
arch/sparc
arch/sparc64
arch/spirv
arch/spu
arch/tricore
arch/v850
arch/vax
arch/vc4
arch/ve
arch/wasm
arch/x86
arch/x86_64
arch/xcore
arch/xtensa
autodoc
backend/c
backend/llvm
backend/self-hosted
binutils
breaking
build system
debug info
docs
error message
frontend
fuzzing
incremental
lib/c
lib/compiler-rt
lib/cxx
lib/std
lib/tsan
lib/ubsan-rt
lib/unwind
linking
miscompilation
os/android
os/contiki
os/dragonfly
os/driverkit
os/emscripten
os/freebsd
os/fuchsia
os/haiku
os/hermit
os/hurd
os/illumos
os/ios
os/linux
os/maccatalyst
os/macos
os/managarm
os/netbsd
os/ohos
os/openbsd
os/plan9
os/redox
os/rtems
os/serenity
os/tvos
os/uefi
os/visionos
os/wasi
os/watchos
os/windows
proposal
release notes
testing
zig cc
zig fmt
zig reduce
bounty
bug
contributor-friendly
downstream
enhancement
infra
optimization
question
regression
upstream
use case
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/zig!31154
Reference in a new issue
ziglang/zig
No description provided.
Delete branch "(deleted):master"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?