Skip to content

tests: Add check using "go tool dist list" #4

@dolmen

Description

@dolmen

Add a check that the generated code is available for all GOARCH listed in go tool dist list.

This test must be in a _test.go file, not in the code generators, as the aim is to be able to detect failures with past or future Go toolchains.

$ go version
go version go1.24.0 darwin/arm64
$ go tool dist list | sed 's!.*/!!' | sort -u
386
amd64
arm
arm64
loong64
mips
mips64
mips64le
mipsle
ppc64
ppc64le
riscv64
s390x
wasm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions