← Back to issue list

the go plugin doesn't use go build-snaps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1616985
Type
issue
State
closed
Author
~elopio
Labels
isv plugin
Created
Updated
Closed

Current evaluation

Fixed by merged PR snapcore/snapcraft#2194 (commit 12d9151d3): the Go plugin now skips golang-go when a go build-snap is configured.

Resolution: closed resolved

Reason: PR snapcore/snapcraft#2194 was merged as commit 12d9151d3, preventing PATH conflicts by omitting the Go deb when a go build-snap is defined.

Evaluated by: mr-cal-bot

No scores available.

Issue body

We are currently using the golang-go package from the xenial or yakkety, which is currently 1.6. Go 1.7 was released some days ago, and there are already projects using it that won't be able to be snapped. Update: we added build-snaps to snapcraft, and now there is a go snap with the latest versions. The go plugin should be able to use the go build-snap instead of the go deb.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#2194 (commit 12d9151d3): the Go plugin now skips golang-go when a go build-snap is configured.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#2194 (12d9151d3): the Go plugin now skips golang-go debs when a Go build-snap is specified.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2194 (12d9151d3): the Go plugin skips golang-go when a Go build-snap is configured. PR #1518 had added build-snaps support.
qwen/qwen3.6-35b-a3b — — Resolved by adding build-snap support to snapcraft and publishing a dedicated go snap. The go plugin was updated to use the go build-snap instead of the legacy deb package, enabling support for newer Go versions.
qwen/qwen3.6-35b-a3b — — Fixed by updating the Go plugin to use go build-snap instead of the legacy deb package, enabling support for newer Go versions.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2194 (confidence 100%)

    Merged change updates the Go plugin to avoid installing golang-go when the go snap is used.

Related issues

Issue Project State Summary Similarity
#1751 the go plugin doesn't use go build-snaps snapcraft closed Fixed in canonical/snapcraft#2194 (commit 12d9151d3): the Go plugin now skips legacy golang-go DEBs when a Go build snap is configured.
90%
#2194 plugins: do not install go debs if go snap is used snapcraft merged Merged as commit 12d9151d3: the Go plugin now skips golang-go when a go build-snap is defined, preventing PATH conflicts.
80%
#1609623 go plugin has no build tags snapcraft (launchpad) closed Added Go build-tag support via the go-buildtags property in snapcraft PR #733 (commit 59d4acf8a), later refined by PR #888.
75%
#1650606 Updated go plugin to use get_build_properties() snapcraft (launchpad) closed Go plugin build-property handling was fixed by merged snapcore/snapcraft PR #997 in commit 0b4239ce7, with added test coverage.
72%
#2061 go: only use Go build package if not using the snap snapcraft closed Closed unmerged after maintainers requested more design; Go build-snap handling was later fixed more narrowly by merged PR #2194 (commit 12d9151d3).
72%