Open ts-sean-foley opened 1 week ago
You can see some additional troubleshooting info in the issue with mentions noted here, as I also filed a proactive issue with the other extension dev.
I can add that I can reproduce this issue with simple xk6 build commands on my workstation environment outside of docker and that the issue is observed when k6 is built with xk6-chai along with other but not all output xk6 extensions. Another similar failure was observed when I tried the following:
xk6 build --with github.com/szkiba/xk6-chai@latest --with github.com/grafana/xk6-output-opentelemetry
<snip>
2024/10/29 18:03:16 [INFO] Build environment ready
2024/10/29 18:03:16 [INFO] Building k6
2024/10/29 18:03:16 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17
2024/10/29 18:03:16 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /Users/sean.foley/wip/k6-extended/k6 -ldflags=-w -s -trimpath
# github.com/szkiba/xk6-chai/chai
../../../go/pkg/mod/github.com/szkiba/xk6-chai@v0.1.2/chai/module.go:89:15: comp.Options.Strict undefined (type compiler.Options has no field or method Strict)
../../../go/pkg/mod/github.com/szkiba/xk6-chai@v0.1.2/chai/module.go:91:23: comp.Compile undefined (type *compiler.Compiler has no field or method Compile)
2024/10/29 18:03:25 [INFO] Cleaning up temporary folder: /Users/sean.foley/wip/k6-extended/buildenv_2024-10-29-1803.2329456817
2024/10/29 18:03:25 [FATAL] exit status 1
EDIT: See comment as this was also reproduced with simple xk6 build command.
I am working to test this extension out in a custom docker image alongside another xk6 extension ( https://github.com/leonyork/xk6-output-timestream ) and when it tries to build the image with both extensions it inevitably complains about compiler options strict and method compile in xk6-chai/chai/module.go
This may not be an issue with your extension but with the other I am trying to build it with but I am looking for answers, and thought you may have some ideas.
I have been racking my brain trying to figure out the cause of the below error with my docker build command:
This is my Dockerfile: