xgo icon indicating copy to clipboard operation
xgo copied to clipboard

missing validation

Open mcandre opened this issue 1 week ago • 0 comments

Hi,

When I request xgo to build most platforms, then it silently ignores them.

This includes aix/ppc64, dragonfly/amd64, freebsd/386, freebsd/arm, freebsd/arm64, freebsd/riscv64, illumos/amd64, js/wasm, linux/loong64, linux/ppc64, netbsd/amd64, openbsd/amd64, plan9/amd64, wasip1/wasm, various other UNIX platforms, and windows/arm64.

Basically, most of the entries of go tool dist list.

The only hint that these platforms are missing, is a lack of corresponding Compiling for <platform> log message, and a lack of a corresponding binary artifact in the output directory. CI/CD pipelines, DevOps engineers, and developers are likely to assume the targets all built successfully, requiring very attentive engineering to catch these glitches.

Please terminate xgo early with an explicit error message and nonzero exit code, to indicate unsupported platforms.

Unclear whether these platforms are missing from the xgo Docker image, and/or the gomidi library that my application uses.

Request that xgo add support for a more complete 1:1 match with the full go tool dist list set of platforms, so that cgo devs can build for various and sundry environments.

mcandre avatar Jan 08 '26 19:01 mcandre