← Back to issue list

go plugin has no build tags

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1609623
Type
issue
State
closed
Author
~elopio
Labels
—
Created
Updated
Closed

Current evaluation

Added Go build-tag support via the go-buildtags property in snapcraft PR #733 (commit 59d4acf8a), later refined by PR #888.

Resolution: closed resolved

Reason: PR #733 implemented the requested go-buildtags property and resolved the build blocker. Commit 59d4acf8a added the feature, with follow-up fix d817b1dbb in PR #888 ensuring tags were always respected.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The new development version of vault now needs a build tag. The go plugin doesn't support passing tags to the go build command, so it is not possible to snap without hacking the plugin. This is blocking https://github.com/ubuntu/snappy-playpen/pull/202

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Added Go build-tag support via the go-buildtags property in snapcraft PR #733 (commit 59d4acf8a), later refined by PR #888.
stealth/space-bunny-alpha — closed resolved Go plugin lacked build tag support, blocking vault snaps. Closed after snapcraft PR #733 added the go-buildtags property (commit 59d4acf8a, LP bug #1609623); PR #888 later made it always respected.
stealth/space-bunny-alpha — closed resolved Go build-tag support landed in canonical/snapcraft#733 (59d4acf8a); #888 (d817b1dbb) later ensured go-buildtags was always respected.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The go plugin lacks build tag support, blocking vault packaging. No fix was implemented, leaving the issue abandoned.
qwen/qwen3.6-35b-a3b — — Closed without action or comments. The Go plugin build tag limitation was not addressed, likely abandoned or superseded as the project evolved.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The go plugin lacks build tag support required for vault, blocking snap packaging. With no comments or linked fixes, the issue was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The go plugin lacks build tag support required for vault snap packaging. No fix was implemented, leaving the issue abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#733 (confidence 100%)

    Added the go-buildtags property cited in the closing comment.

  • Related To: snapcraft#888 (confidence 90%)

    Follow-up change ensuring go-buildtags values are always respected.

Related issues

Issue Project State Summary Similarity
#733 Add the go-buildtags property to the go plugin snapcraft merged Merged PR #733 added the go-buildtags property to Snapcraft's Go plugin, implementing LP #1609623 in commit 59d4acf8a.
86%
#1616985 the go plugin doesn't use go build-snaps snapcraft (launchpad) closed Fixed by merged PR snapcore/snapcraft#2194 (commit 12d9151d3): the Go plugin now skips golang-go when a go build-snap is configured.
75%
#1640184 tags need to apply to all go packages snapcraft (launchpad) closed Fixed by merged PR snapcore/snapcraft#888 (commit d817b1dbb): the Go plugin now honors go-buildtags for every package, including when go-packages is defined.
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%
#888 Always respect go-buildtags snapcraft merged Merged PR #888 (commit d817b1dbb) made the go plugin always pass go-buildtags, fixing LXD snap builds so they link the system libsqlite3 instead of the bundled copy (~20x faster).
72%
#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.
72%
#99 go plugin: implement a go-packages plugin property snapcraft merged Merged PR #99 added the go-packages property to Snapcraft's Go plugin in commit 657db2cf1, merged via 9d3d05044.
71%
#1884558 go plugin with snapcraft 4 doesn't support building static binaries snapcraft (launchpad) closed Closed as stale after more than six years; a maintainer noted that the Go plugin had changed substantially since Snapcraft 4, with no targeted fix cited.
71%