Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with tinygo? #73

Open
dkegel-fastly opened this issue Jun 19, 2022 · 1 comment
Open

Incompatible with tinygo? #73

dkegel-fastly opened this issue Jun 19, 2022 · 1 comment

Comments

@dkegel-fastly
Copy link
Contributor

Evidently zerolog 0.27 added colorization on windows by pulling in mattn/go-colorable, which in turn pulls in go-isatty.
Great! Except that now zerolog can't be used with tinygo (on macos, at least, and possibly other operating systems).

At least part of the problem can be traced to go-isatty:

$ tinygo test
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20220615213510-4f61da869c0c/unix/syscall_unix.go:466:17: Exec not declared by package syscall
FAIL
dkegel-fastly added a commit to dkegel-fastly/go-isatty that referenced this issue Jun 19, 2022
@dankegel
Copy link

On Linux, the symptom is slightly different. Tested with recent dev branch of tinygo:

$ tinygo test
tinygo:ld.lld: error: undefined symbol: golang.org/x/sys/unix.Syscall

dkegel-fastly added a commit to dkegel-fastly/go-isatty that referenced this issue May 20, 2023
mattn added a commit that referenced this issue Oct 17, 2023
Adjust build tags to allow building on tinygo; for #73.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants