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
I am able to build the k6 extension for excel in mac and linux environment. Can i also build it for windows?
I also observer that the k6 extension i create on Mac works only on mac and not on linux. Is my observation correct or there is a way i can build one extension for any operating system.
The text was updated successfully, but these errors were encountered:
Sourabh25
changed the title
Can i build the custom extension on windows machine
Can I build the custom extension on windows machine
Mar 11, 2021
Hi, sure, xk6 works on Windows as well. The way environment variables are specified works differently on Windows shells, and if you're building an extension that requires cgo you'll also need a C compiler installed. See this forum post for details.
You can build k6 binaries with xk6 for all operating systems supported by Go. xk6 is simply a wrapper around calling go commands with a friendlier UI than doing this manually. So unless your extension uses some platform-specific features, you can cross-compile it for all platforms, but a binary compiled for one platform won't work on another, same as with any binary compiled with Go. It's simply a matter of changing the GOOS and GOARCH environment variables if you're cross-compiling (i.e. building multiple binaries on one system), otherwise Go should detect these if you're targeting the same platform you're building on.
For further questions please use the community forum or the #extensions channel on Slack.
I am able to build the k6 extension for excel in mac and linux environment. Can i also build it for windows?
I also observer that the k6 extension i create on Mac works only on mac and not on linux. Is my observation correct or there is a way i can build one extension for any operating system.
The text was updated successfully, but these errors were encountered: