deps: upgrade dependencies

This commit is contained in:
Chris Lane
2021-06-08 20:45:52 -04:00
parent a2aa82d9f3
commit 501f9c66ad
90 changed files with 3037 additions and 12107 deletions

View File

@ -1,4 +1,4 @@
// +build appengine js nacl
// +build appengine js nacl wasm
package isatty

View File

@ -8,10 +8,9 @@ import (
)
// IsTerminal returns true if the given file descriptor is a terminal.
// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c
// see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c
func IsTerminal(fd uintptr) bool {
var termio unix.Termio
err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
_, err := unix.IoctlGetTermio(int(fd), unix.TCGETA)
return err == nil
}

View File

@ -1,4 +1,4 @@
// +build linux aix
// +build linux aix zos
// +build !appengine
package isatty

View File

@ -1,8 +0,0 @@
{
"extends": [
"config:base"
],
"postUpdateOptions": [
"gomodTidy"
]
}