go plugin: Use CGO_LDFLAGS when building
Metadata
Current evaluation
Merged an update to the go plugin that applies CGO_LDFLAGS during building, enabling staged libraries from stage-packages to be found. The change passed tests, received approval, and resolved the linked bug.
Suggested action: —
No scores available.
Issue body
By exporting the CGO_LDFLAGS using the proper root, staged libraries
from stage-packages can be found.
Closes LP: #1513935
Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged an update to the go plugin that applies CGO_LDFLAGS during building, enabling staged libraries from stage-packages to be found. The change passed tests, received approval, and resolved the linked bug. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Exports CGO_LDFLAGS to resolve staged library linking during Go plugin builds. Approved after passing tests, resolving Launchpad bug #1513935. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. The Go plugin now exports CGO_LDFLAGS during the build to correctly locate staged libraries from stage-packages. Approved after passing tests and closes LP: #1513935. |
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. | |
| #161 Go plugin creating invalid env | snapcraft | merged | Merged a fix for the Go plugin generating invalid environment variables during python3 executable wrapping. The change removes unnecessary CGO_LDFLAGS. Approved after reviewer confirmation, with a note to backport to the 1.x branch. |