You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
WASI input plugins do not work if compiled with latest version of tinygo
To Reproduce
tinygo 0.35.0, go 1.23.6, fluentbit 3.2.7 (Container image)
main.go file
package main
import "fmt"
func main() {
fmt.Println("{\"test\":\"test\"}")
}
Build command:
tinygo build --target=wasi -o main.wasm main.go;
Fluent bit config:
[SERVICE]
Flush 1
Daemon Off
Log_Level info
HTTP_Server Off
HTTP_Listen 0.0.0.0
HTTP_Port 2020
[INPUT]
Name exec_wasi
Tag exec.wasi.local
WASI_Path /config/input/main.wasm
[OUTPUT]
Name stdout
Match *
After running fluentbit I get this error
WASI main function is not found
Expected behavior
See this message in fluentbit logs
Bug Report
Describe the bug
WASI input plugins do not work if compiled with latest version of tinygo
To Reproduce
tinygo 0.35.0, go 1.23.6, fluentbit 3.2.7 (Container image)
main.go file
Build command:
Fluent bit config:
After running fluentbit I get this error
Expected behavior
See this message in fluentbit logs
Screenshots

Your Environment
Additional context
With tinygo 0.24.0 and go 1.19.13 it works perfectly, but it's quite outdated and I would like to use the latest toolset.
The text was updated successfully, but these errors were encountered: