xgo icon indicating copy to clipboard operation
xgo copied to clipboard

request: additional ISA's

Open mcandre opened this issue 1 month ago • 2 comments

Hi,

I love Go's inherent portability across architectures. I see that the techknowlogick/xgo images currently support linux/amd64 and linux/arm64. Can we please expand these to include more of the architectures that Go supports? So that CGo users can build our applications for more platforms.

For comparison, Docker Hub's official golang image supports more of these other architectures:

https://hub.docker.com/_/golang

mcandre avatar Jan 07 '26 22:01 mcandre

Just to be sure, you do you want to run xgo on different architectures or be able to build for different architectures?

The latter should already be possible as xgo supports the following target arches: 386, amd64, arm-5, arm-6, arm-7, arm64, mips, mipsle, mips64, mips64le, riscv64

If you need to link against native libraries, you need to install them for the relevant arch or cross-compile it yourself during the xgo execution using hooks.

bearsh avatar Jan 08 '26 07:01 bearsh

I want to expand the buildx platforms of the Docker images.

Yes, I understand GOARCH and link library requirements.

mcandre avatar Jan 08 '26 17:01 mcandre