Open
Description
Trying to build on windows 11 x86-64 on Github actions, I'm getting a build error:
(23:31:05) ERROR: D:/a/datasets/datasets/client/openapi/BUILD:62:15: GoCompilePkg openapi/golib.v2.a failed: (Exit 1): builder.exe failed: error executing GoCompilePkg command (from target //openapi:golib.v2) bazel-out\x64_windows-opt-exec-ST-d57f47055a04\bin\external\rules_go++go_sdk+datasets_client__download_0\builder_reset\builder.exe -param=bazel-out/x64_windows-fastbuild/bin/openapi/golib.v2.a-0.params
<unknown line number>: internal compiler error: panic: badly formatted input
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
Might be worth reporting to Go, but I don't have access to an x86 windows machine to reproduce locally. I've tried with arm windows but there the build fails earlier, see #496
Full logs
Run bazel build apps/public/Datasets/...
Extracting Bazel installation...
Starting local Bazel server (8.2.1) and connecting to it...
(23:29:00) INFO: Invocation ID: 32fa0d92-54d[6](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:7)-4ff5-82f0-9a690749cec5
(23:29:00) INFO: Current date is 2025-05-2[7](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:8)
(23:29:00) Computing main repo mapping:
(23:29:01) Computing main repo mapping:
(23:29:02) Loading:
(23:29:02) Loading: 0 packages loaded
(23:29:03) Loading: 0 packages loaded
(23:29:04) Loading: 0 packages loaded
(23:29:05) Analyzing: 4 targets (4 packages loaded)
(23:29:05) Analyzing: 4 targets (4 packages loaded, 0 targets configured)
(23:29:05) Analyzing: 4 targets (4 packages loaded, 0 targets configured)
(23:29:06) Analyzing: 4 targets (4[8](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:9) packages loaded, 7 targets configured)
(23:29:08) Analyzing: 4 targets (54 packages loaded, 7 targets configured)
(23:2[9](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:10):15) Analyzing: 4 targets (54 packages loaded, 7 targets configured)
(23:29:19) Analyzing: 4 targets (54 packages loaded, 7 targets configured)
(23:29:21) Analyzing: 4 targets (70 packages loaded, 1220 targets configured)
(23:29:22) Analyzing: 4 targets (87 packages loaded, 3523 targets configured)
(23:29:22) WARNING: D:/a/datasets/datasets/client/MODULE.bazel:16:24: The module extension go_deps defined in @gazelle//:extensions.bzl reported incorrect imports of repositories via use_repo():
Not imported, but reported as direct dependencies by the extension (may cause the build to fail):
com_github_stretchr_testify, ke_bou_monkey
Fix the use_repo calls by running 'bazel mod tidy'.
(23:29:23) Analyzing: 4 targets (89 packages loaded, 3642 targets configured)
(23:29:25) Analyzing: 4 targets (89 packages loaded, 3642 targets configured)
(23:29:26) Analyzing: 4 targets (92 packages loaded, 3847 targets configured)
(23:29:27) Analyzing: 4 targets (97 packages loaded, 5058 targets configured)
(23:29:29) Analyzing: 4 targets (98 packages loaded, 5058 targets configured)
(23:29:30) Analyzing: 4 targets ([10](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:11)0 packages loaded, 8164 targets configured)
(23:29:31) Analyzing: 4 targets (101 packages loaded, 8344 targets configured)
(23:29:32) Analyzing: 4 targets (102 packages loaded, 8344 targets configured)
(23:29:33) Analyzing: 4 targets (103 packages loaded, 18253 targets configured)
(23:29:50) Analyzing: 4 targets (103 packages loaded, 18253 targets configured)
(23:29:51) Analyzing: 4 targets (109 packages loaded, 18339 targets configured)
(23:29:52) Analyzing: 4 targets (121 packages loaded, 18389 targets configured)
(23:29:53) Analyzing: 4 targets (139 packages loaded, 18486 targets configured)
(23:30:18) Analyzing: 4 targets (139 packages loaded, 18486 targets configured)
(23:30:18) INFO: Analyzed 4 targets (145 packages loaded, 18676 targets configured).
(23:30:19) [4 / 49] checking cached actions
(23:30:19) WARNING: D:/a/datasets/datasets/client/openapi/BUILD:23:22: input 'openapi/templates/go' of //openapi:openapi.genlib.v2.go is a directory; dependency checking of directories is unsound
(23:30:20) [7 / 54] Action openapi/openapi.genlib.v2.go; 0s local, disk-cache ... (2 actions running)
(23:30:26) [8 / 54] GoToolchainBinaryBuild external/rules_go++go_sdk+datasets_client__download_0/builder.exe [for tool]; 5s local, disk-cache ... (2 actions, 1 running)
(23:30:27) [9 / 54] GoToolchainBinaryBuild external/rules_go++go_sdk+datasets_client__download_0/builder.exe [for tool]; 7s local, disk-cache
(23:30:28) [9 / 54] GoToolchainBinaryBuild external/rules_go++go_sdk+datasets_client__download_0/builder.exe [for tool]; 8s local, disk-cache
(23:30:30) [9 / 54] GoToolchainBinaryBuild external/rules_go++go_sdk+datasets_client__download_0/builder.exe [for tool]; 10s local, disk-cache
(23:30:37) [9 / 54] GoToolchainBinaryBuild external/rules_go++go_sdk+datasets_client__download_0/builder.exe [for tool]; 17s local, disk-cache
(23:30:39) [10 / 54] [Prepa] Creating symlink external/rules_go++go_sdk+datasets_client__download_0/builder_reset/builder.exe [for tool]
(23:30:41) [[11](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:12) / 54] GoStdlib external/rules_go+/stdlib_/pkg; 1s local, disk-cache
(23:30:52) [11 / 54] GoStdlib external/rules_go+/stdlib_/pkg; 11s local, disk-cache
(23:31:02) [[12](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:13) / 54] [Prepa] GoCompilePkg external/gazelle++go_deps+com_github_antihax_optional/optional.a
(23:31:04) [12 / 54] GoCompilePkg external/gazelle++go_deps+com_github_spf[13](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:14)_pflag/pflag.a; 1s disk-cache ... (4 actions, 0 running)
(23:31:05) ERROR: D:/a/datasets/datasets/client/openapi/BUILD:62:15: GoCompilePkg openapi/golib.v2.a failed: (Exit 1): builder.exe failed: error executing GoCompilePkg command (from target //openapi:golib.v2) bazel-out\x64_windows-opt-exec-ST-d57f47055a04\bin\external\rules_go++go_sdk+datasets_client__download_0\builder_reset\builder.exe -param=bazel-out/x64_windows-fastbuild/bin/openapi/golib.v2.a-0.params
<unknown line number>: internal compiler error: panic: badly formatted input
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
compilepkg: error running subcommand external\rules_go++go_sdk+datasets_client__download_0\pkg\tool\windows_amd64\compile.exe: exit status 2
(23:31:05) [26 / 54] checking cached actions
Use --verbose_failures to see the command lines of failed build steps.
(23:31:05) INFO: Elapsed time: 129.218s, Critical Path: 44.93s
(23:31:05) INFO: 26 processes: 12 internal, [14](https://github.com/corneliusroemer/datasets/actions/runs/15287836003/job/43001614960#step:5:15) local.
(23:31:05) ERROR: Build did NOT complete successfully