From 7165f5e779a587f37fff841ecbae4d6bce9a2aa1 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Wed, 31 May 2023 19:17:20 +0200 Subject: [PATCH] Add WASI wasip1 support Fix building when the new `wasip1` port is being used. This is a new target that will be introduced by go 1.21. For more details https://github.com/golang/go/issues/58141 Signed-off-by: Flavio Castelli --- terminal_check_wasip1.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 terminal_check_wasip1.go diff --git a/terminal_check_wasip1.go b/terminal_check_wasip1.go new file mode 100644 index 0000000..108a6be --- /dev/null +++ b/terminal_check_wasip1.go @@ -0,0 +1,8 @@ +//go:build wasip1 +// +build wasip1 + +package logrus + +func isTerminal(fd int) bool { + return false +}