Go: support linux-arm64 in autobuild scripts - #22338
Merged
Merged
Conversation
jketema
approved these changes
Aug 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Enables Go automatic build detection on native Linux Arm64.
Changes:
- Adds
linux-arm64to platform allowlists across Go’s Unix tooling scripts. - Allows autobuilding, indexing, and environment detection to use native Arm64 binaries.
Show a summary per file
| File | Description |
|---|---|
go/codeql-tools/autobuild.sh |
Enables Linux Arm64 autobuilding. |
go/codeql-tools/index.sh |
Enables Linux Arm64 indexing. |
go/codeql-tools/identify-environment.sh |
Enables Linux Arm64 environment detection. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
The go autobuilder, extractor and identify-environment tools are arch-native and their per-platform binaries are already built for linux-arm64, but the unix wrapper scripts hard-gated on linux64/osx64 and bailed with "Automatic build detection ... is not implemented" on arm64. Allow linux-arm64 so Go extraction works on native Linux Arm64. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
redsun82
force-pushed
the
redsun82-go-autobuild-linux-arm64
branch
from
August 13, 2026 15:11
a27bb8a to
33c26b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the native Linux Arm64 support effort. Enables the Go extractor's automatic build detection on
linux-arm64.Problem
The Go extractor's unix wrapper scripts in
go/codeql-tools/(autobuild.sh,index.sh,identify-environment.sh) hard-gate onCODEQL_PLATFORMbeinglinux64orosx64. On a native Linux Arm64 runnerCODEQL_PLATFORM=linux-arm64, so every one of them bails out immediately with:This causes
codeql database createto fail for Go on arm64 even though the per-platform extractor binaries (go-autobuilder,go-build-runner,go-extractor, etc.) are already built natively forlinux-arm64viaprefix = "tools/{CODEQL_PLATFORM}".Fix
Add
linux-arm64to the platform allowlist in the three scripts. The Go autobuilder/extractor code is arch-agnostic (no hardcodedamd64/GOARCHassumptions), so no further change is needed. macOS remains a universalosx64build, so noosx-arm64entry is required.Validation
Surfaced by running the Go integration tests on a native
linux-arm64runner, where the whole suite failed with the message above; this fix unblocks that slice.bash -npasses on all three modified scripts.