go.mod dependencies are severely outdated (go 1.12, pre-module commit pins)
Author: wpjuniorCreated Sep 16, 2026Updated Sep 16, 2026
go.mod still pins Go 1.12 and 2018-era commit hashes for chzyer/readline, chzyer/logex, and chzyer/test, plus a golang.org/x/sys snapshot from November 2018:
go 1.12
require (
github.com/chzyer/logex v1.1.10 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b // indirect
)Issues this causes:
- Missing years of
chzyer/readlinebug fixes (tagged releases now go up tov1.5.1) - Ancient
x/sysmeans stale syscall/platform bindings - Pseudo-versions and old
x/systrip up dependency scanners for consumers go 1.12blocks any newer toolchain features
Suggested fix:
go 1.18
require github.com/chzyer/readline v1.5.1
require golang.org/x/sys v0.30.0 // indirectVerified locally: go build, go vet, and go test ./... all pass. Happy to open a PR with this change.
Source: manifoldco/promptui