I have a project that imports “golang.org/x/crypto/bcrypt” and when I try to run go get -u
or go build
I get the following errors:
# golang.org/x/crypto/ssh/terminal
../../../golang.org/x/crypto/ssh/terminal/util.go:55: undefined: unix.VMIN
../../../golang.org/x/crypto/ssh/terminal/util.go:56: undefined: unix.VTIME
../../../golang.org/x/crypto/ssh/terminal/util_bsd.go:11: undefined: unix.TIOCGETA
../../../golang.org/x/crypto/ssh/terminal/util_bsd.go:12: undefined: unix.TIOCSETA
I’m running this on a Macbook Pro 2017, macOS Sierra 10.12.6 with Go 1.8 installed. Can anyone give me some pointers on what could be going wrong?