Closed rajatjindal closed 1 year ago
requesting review from @sirupsen
Can you explain https://github.com/sirupsen/logrus/pull/1388/files vs this PR? @flavio
They are similar. TinyGo and the official Go compiler use a different identifier for the WASI target. TinyGo uses wasi
, while the official Go compiler will use wasip1
.
I think we could make the two PR conflate into a single one and make it target both GOOS values.
BTW, the usage of the tinygo
identifier seems a bit too wide to me. This would identify also a TinyGo binary built for a regular linux/osx/windows system.
I am happy to have my PR closed in favor of #1388 if we want to add support of tinygo
there as well. thank you.
I've updated my PR to include tinygo + wasi support
You can see a demo here: https://gist.github.com/flavio/f24fc3f349c09ac134e2e130109488e9
merged the other one
hello
I am using
logrus
in agolang wasm project
(code here) and when trying to build it usingtinygo
, I am running into following issue:I ran into a similar problem using mattn/go-isatty, which is apparently fixed by a similar PR
therefore I am submitting this PR for
logurs
to allow us to use it withtinygo
in a similar fashion.Kindly let me know if this makes sense. I am happy to answer or implement any feedback that you might have.
Regards Rajat Jindal