You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address aponcedeleonch's review on PR #5201:
- Update --socket help to mention named pipes and regen CLI docs.
- Promote namedPipePrefix to discovery.NamedPipePrefix as the
canonical definition; pkg/api re-aliases it locally so listener
and dialer cannot drift.
- Make isNamedPipeAddress case-insensitive via strings.EqualFold;
the Windows pipe namespace is case-insensitive at the kernel
layer, so \\.\Pipe\foo must not silently fall through to AF_UNIX.
- Collapse stat-then-remove into a single os.Remove that tolerates
fs.ErrNotExist on both POSIX and the Windows AF_UNIX fallback.
- Close the listener and remove the socket file when Chmod fails,
rather than leaking a bound AF_UNIX listener.
- Replace stdruntime.GOOS with a per-platform supportsNamedPipe()
helper, dropping the runtime-package alias and its collision
with pkg/container/runtime.
- Rename socket_other.{go,_test.go} to socket_unix.{go,_test.go}
to match the client_unix/client_windows convention used by
pkg/container/docker/sdk.
- Add TestCreateListener_NamedPipe_Unsupported to round out the
listener-side reject coverage on non-Windows builds.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments