From 9f43e85921b53dabd0240756a7d49a4b728a70c6 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Fri, 22 Jul 2016 21:45:46 -0700 Subject: [PATCH] vendor: fix go-iastty to not break on unknown operating systems --- pup.go | 2 +- vendor/github.com/mattn/go-isatty/isatty_unsupported.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vendor/github.com/mattn/go-isatty/isatty_unsupported.go diff --git a/pup.go b/pup.go index cb2c90b..aa2dee6 100644 --- a/pup.go +++ b/pup.go @@ -16,7 +16,7 @@ import ( // |/ \_( # |" // C/ ,--___/ -var VERSION string = "0.3.9" +var VERSION string = "0.4.0" func main() { // process flags and arguments diff --git a/vendor/github.com/mattn/go-isatty/isatty_unsupported.go b/vendor/github.com/mattn/go-isatty/isatty_unsupported.go new file mode 100644 index 0000000..6cf8b02 --- /dev/null +++ b/vendor/github.com/mattn/go-isatty/isatty_unsupported.go @@ -0,0 +1,8 @@ +// +build dragonfly nacl plan9 + +package isatty + +// IsTerminal return true if the file descriptor is terminal. +func IsTerminal(fd uintptr) bool { + return false +}