History

fix: darwin cross-compile broken by Linux-only termios ioctls

readPassword used unix.TCGETS/TCSETS, which don't exist on darwin (spelled TIOCGETA/TIOCSETA there) — 'make dist' failed on the first real release run. Use golang.org/x/term.ReadPassword, which handles the per-OS termios differences and echo restore itself.

Ben Davis committed 4 months ago

Commit 51616391 parent 9da6ff03 files · +12 −31Browse files

Showing the changes to go.mod (1 of 3 files). Show all

Unified · Split

go.mod+1−0
@@ -6,6 +6,7 @@ require ( · 5 unmodified lines
66 github.com/docker/docker v28.5.2+incompatible
77 github.com/docker/go-connections v0.7.0
88 golang.org/x/sys v0.46.0
9+ golang.org/x/term v0.44.0
910 )
1011
1112 require (