{"record":{"id":"4efa4b4a7cd4b6b3","repo":"goreleaser/goreleaser","slug":"unsupported-arch-q","errorCode":null,"errorMessage":"unsupported arch: %q","messagePattern":"unsupported arch: %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/pipe/docker/v2/docker.go","lineNumber":578,"sourceCode":"\tswitch a.Goos {\n\tcase \"linux\", \"windows\":\n\t\tparts = append(parts, a.Goos)\n\tdefault:\n\t\treturn \"\", fmt.Errorf(\"unsupported OS: %q\", a.Goos)\n\t}\n\tswitch a.Goarch {\n\tcase \"amd64\", \"arm64\", \"386\", \"ppc64le\", \"s390x\", \"riscv64\":\n\t\tparts = append(parts, a.Goarch)\n\tcase \"arm\":\n\t\tparts = append(parts, a.Goarch)\n\t\tswitch a.Goarm {\n\t\tcase \"5\", \"6\", \"7\":\n\t\t\tparts = append(parts, \"v\"+a.Goarm)\n\t\tdefault:\n\t\t\treturn \"\", fmt.Errorf(\"unsupported arch: arm/v%q\", a.Goarm)\n\t\t}\n\tdefault:\n\t\treturn \"\", fmt.Errorf(\"unsupported arch: %q\", a.Goarch)\n\t}\n\treturn path.Join(parts...), nil\n}\n\ntype platform struct {\n\tos, arch string\n\tarm      string\n}\n\nfunc parsePlatform(p string) platform {\n\tparts := strings.Split(p, \"/\")\n\tresult := platform{\n\t\tos: parts[0],\n\t}\n\tif len(parts) >= 2 {\n\t\tresult.arch = parts[1]\n\t}\n\tif len(parts) >= 3 {","sourceCodeStart":560,"sourceCodeEnd":596,"githubUrl":"https://github.com/goreleaser/goreleaser/blob/f5edd7395693c0c6b501dc722d445d2e86af854d/internal/pipe/docker/v2/docker.go#L560-L596","documentation":"Validation error in toPlatform: the artifact's goarch is not in the supported set (amd64, arm64, 386, ppc64le, s390x, riscv64, arm). Docker build context platform paths are only defined for those arches; anything else (e.g. loong64 in older versions, wasm) is rejected with the value quoted.","triggerScenarios":"Thrown at internal/pipe/docker/v2/docker.go:578 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported goarch: amd64, arm64, 386, ppc64le, s390x, riscv64, or arm","Fix the build matrix so artifacts have valid architecture metadata","Filter out unsupported architectures from the docker image config"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f5edd7395693c0c6b501dc722d445d2e86af854d","analyzedAt":"2026-09-05T09:57:18.807Z","contentChangedAt":"2026-09-05T09:57:18.807Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}