← Back to issue list

go plugin: cross-compilation support

View original Github issue

Metadata

Project
snapcraft
Number
#1253
Type
pull request
State
closed
Author
kalikiana
Labels
Created
Updated
Closed

Current evaluation

Superseded. The author split the changes into four smaller pull requests: go plugin cross-compilation support, CGo cross-compilation, multi-arch build dependencies, and foreign arch setup.

Suggested action:

No scores available.

Issue body

To be used with the --target-arch= argument. Fixes [bug 1664857](https://bugs.launchpad.net/snapcraft/+bug/1664857).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Superseded. The author split the changes into four smaller pull requests: go plugin cross-compilation support, CGo cross-compilation, multi-arch build dependencies, and foreign arch setup.
qwen3.6-35b-a3b-mtp-q6 Superseded by four smaller pull requests. The author split the cross-compilation work into separate PRs for basic support, CGO compilation, multi-arch dependencies, and foreign arch setup following review and testing feedback.
qwen3.6-35b-a3b-mtp-q6 Closed and superseded by four smaller PRs (#1338, #1343, #1346, #1348). Reviewers flagged missing CGO flags and integration test failures. The author split the cross-compilation implementation into incremental changes to address build dependency and architecture setup issues.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1343 go plugin: Cross compile with CGo snapcraft merged Merged to enable cross-compilation for Go plugins when CGo is enabled. Approved by one reviewer, the change updates seven files with 83 additions and 7 deletions to correctly handle CGo flags during cross builds.
86%
#1338 go plugin: Add support for cross-compilation snapcraft merged 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.
81%
#5931 docs: golang plugin doc missing information on cross-compiling snapcraft open Go plugin docs omit cross-compilation; reporter shows cross-compile fails because the plugin sets GOBIN (go install error), and clearing GOBIN triggers a missing install-dir error. Untriaged, no labels or maintainer response in ~255 days.
72%