cloudflare/gokey

Build on Windows

lucasepe opened this issue · 2 comments

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))

Thanks for the report. Does #23 look OK to you?

Perfect! Build OK & running. Thank you very much.