Skip to content

Commit

Permalink
Guard unsafe imports behind !appengine
Browse files Browse the repository at this point in the history
"unsafe" (in this case, imported via "golang.org/x/sys/unix") cannot be
used on AppEngine, so we need to add the "!appengine" build constraint
to terminal_check_unix.go.

Fixes #947.
  • Loading branch information
Hexcles committed May 22, 2019
1 parent 2a22dbe commit 6c2c8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal_check_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build linux aix
// +build !appengine

package logrus

Expand All @@ -10,4 +11,3 @@ func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}

0 comments on commit 6c2c8fa

Please sign in to comment.