go plugin: Add support for cross-compilation
Metadata
Current evaluation
Merged #1338 in commit a167ec4a3, adding target-architecture cross-compilation for snaps built from parts using the Go plugin.
Resolution: closed resolved
Reason: PR #1338 was approved and merged as commit a167ec4a3, enabling `snapcraft snap --target-arch` for Go-part builds.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Support doing `snapcraft snap --target-arch=` with parts using the **go** plugin
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #1338 in commit a167ec4a3, adding target-architecture cross-compilation for snaps built from parts using the Go plugin. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/snapcraft#1338 (commit a167ec4a3), enabling Go-part cross-compilation through snapcraft snap --target-arch. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval, enabling cross-compilation for the Go plugin via snapcraft's --target-arch flag. Six files were modified with 144 additions and 11 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged: adds cross-compilation support to the go plugin, enabling snapcraft to build Go parts using the --target-arch flag. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#1343
(confidence 99%)
Follow-up PR merged as commit 55fe00c67 to add CGo-aware Go cross-compilation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1350 rust plugin: Add support for cross-compilation | snapcraft | merged | Merged PR #1350 added --target-arch cross-compilation support for Rust plugin parts in commit 94fb1060e. | |
| #1343 go plugin: Cross compile with CGo | snapcraft | merged | Merged CGo-aware cross-compilation for Go parts in PR #1343 at commit 55fe00c67, following general Go cross-compilation in #1338. | |
| #1253 go plugin: cross-compilation support | snapcraft | closed | Closed unmerged after the author split it into #1338 (cross-compilation), #1343 (CGo cross-compile), #1346 (multi-arch build deps) and #1348 (foreign arch setup). #1338 (a167ec4a3) and #1343 (55fe00c67) were merged. | |
| #2454 baseplugin: add a proper exception for cross-compilation support | snapcraft | merged | Merged in snapcore/snapcraft#2454 via commit 8eee6c131, adding a clear exception when cross-compilation is requested with an unsupported plugin. | |
| #1624544 cross compilation pass for the dump plugin | snapcraft (launchpad) | closed | Added cross-compilation support to the dump plugin in snapcore/snapcraft#791, resolving the Launchpad issue. |