Build on Windows
lucasepe opened this issue · 2 comments
lucasepe commented
Go getting and building gokey on Windows OS
go get github.com/cloudflare/gokey/cmd/gokey
gives this errors:
# github.com/cloudflare/gokey/cmd/gokey
...\src\github.com\cloudflare\gokey\cmd\gokey\main.go:121:43: cannot use syscall.Stdin (type syscall.Handle) as type int in argument to terminal.ReadPassword
...\src\github.com\cloudflare\gokey\cmd\gokey\main.go:133:47: cannot use syscall.Stdin (type syscall.Handle) as type int in argument to terminal.ReadPassword
The build is successful after replacing in main.go
:
terminal.ReadPassword(syscall.Stdin)
with:
terminal.ReadPassword(int(syscall.Stdin))
lucasepe commented
Perfect! Build OK & running. Thank you very much.