← Back to issue list

go plugin: Use CGO_LDFLAGS when building

View original Github issue

Metadata

Project
snapcraft
Number
#92
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #92 as commit b397f07be (merge 7a6a4520d), exporting CGO_LDFLAGS from the staged root so Go builds can link libraries installed by stage-packages.

Resolution: closed resolved

Reason: The Go plugin change was merged into Snapcraft via PR #92 and commit b397f07be, resolving LP #1513935.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #92 as commit b397f07be (merge 7a6a4520d), exporting CGO_LDFLAGS from the staged root so Go builds can link libraries installed by stage-packages.
stealth/space-bunny-alpha — closed resolved Merged: go plugin now exports CGO_LDFLAGS pointing at the staged root so libs from stage-packages link. Commit b397f07be merged as 7a6a4520d; closes LP #1513935.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#92 (commit b397f07be, merge 7a6a4520d) to export CGO_LDFLAGS from the staged root, fixing LP #1513935.
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.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
74%