v0.8.0 can't install on Windows
urbanyeti opened this issue · comments
Urbanyeti commented
When trying to install with go install github.com/segmentio/golines@latest
, the following error occurs:
# github.com/segmentio/golines
..\..\..\go\pkg\mod\github.com\segmentio\golines@v0.8.0\diff.go:39:28: cannot use syscall.Stdout (type syscall.Handle) as type int in argument to terminal.IsTerminal
After googling the error, I found a similar issue in a different project that was resolved by wrapping the terminal call with an int:
case !terminal.IsTerminal(int(syscall.Stdout.Fd()) && len(line) > 0:
v.0.7.0 seems to be working fine.