Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log/term: fix build on GOOS=js GOARCH=wasm (#993)
Before this fix, the build would fail, as IsTerminal isn't defined on that platform: $ GOOS=js GOARCH=wasm go build # github.com/go-kit/kit/log/term ./term.go:14:6: undefined: IsTerminal The reason is pretty simple; js/wasm doesn't have syscalls, and thus it doesn't have an "is a terminal" syscall. Grouping it with appengine to always assume that the output is not a terminal is good enough for now, as it at least makes the package build. No change is needed in any other file, because none of the other IsTerminal +build lines include js/wasm in any way.
- Loading branch information