Hey there, thanks for this easy to use project. We are currently trying to upgrade to V2 and have noticed, that cross compilation (specifically Linux compiles for ARM MacOS) in a docker image no longer seems to work.
Commands that work in the golang:1.26.4 image:
xk6 build --k6-version v1.7.1 --with github.com/mostafa/xk6-kafka@v1.3.0 --os linux --verbose
xk6 build --k6-version v1.7.1 --with github.com/mostafa/xk6-kafka@v1.3.0 --os darwin --verbose
xk6 build --k6-version v2.0.0 --with github.com/mostafa/xk6-kafka/v2@v2.0.0 --os linux --verbose
Commands that don't work in the same image:
xk6 build --k6-version v2.0.0 --with github.com/mostafa/xk6-kafka/v2@v2.0.0 --os darwin --verbose
The command fails with
9:24AM INF Building k6
# github.com/confluentinc/confluent-kafka-go/v2/schemaregistry/internal
/xk6-go/mod/github.com/confluentinc/confluent-kafka-go/v2@v2.14.0/schemaregistry/internal/rest_service.go:93:22: undefined: kafka.LibraryVersion
9:24AM INF Cleaning up work directory /tmp/k6foundry2632259015
9:24AM ERR compiling: executing go command: exit status 1
It would be great if this could work again, because by cross building with docker we can avoid having each developer install a k6 toolchain and maintain it.
Hey there, thanks for this easy to use project. We are currently trying to upgrade to V2 and have noticed, that cross compilation (specifically Linux compiles for ARM MacOS) in a docker image no longer seems to work.
Commands that work in the
golang:1.26.4image:Commands that don't work in the same image:
The command fails with
It would be great if this could work again, because by cross building with docker we can avoid having each developer install a k6 toolchain and maintain it.