← Back to issue list

plugins: do not install go debs if go snap is used

View original Github issue

Metadata

Project
snapcraft
Number
#2194
Type
pull request
State
merged
Author
mvo5
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 12d9151d3: the Go plugin now skips golang-go when a go build-snap is defined, preventing PATH conflicts.

Resolution: closed resolved

Reason: PR #2194 was merged as commit 12d9151d3. It updates the Go plugin to omit the golang-go build package when a go build-snap is configured.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Right now the go plugin will always pull in the golang-go build-package. This is problematic when the project also has a "go" build-snap. The deb package comes before in PATH and it seems like there is no easy way to override this. This PR fixes it by simply not installing the golang-go deb if there is a build-snap already defined.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit 12d9151d3: the Go plugin now skips golang-go when a go build-snap is defined, preventing PATH conflicts.
stealth/space-bunny-alpha — closed resolved Merged PR #2194 in commit 12d9151d3: the Go plugin now skips the golang-go deb when a build-snap is defined.
stealth/space-bunny-alpha — closed resolved Merged PR #2194 as 12d9151d3: the Go plugin now skips the golang-go deb when a go build-snap is defined, preventing PATH conflicts.
stealth/space-bunny-alpha — closed resolved Merged PR #2194 as commit 12d9151d3: the Go plugin now skips installing golang-go when a go build-snap is defined, avoiding PATH conflicts.
qwen/qwen3.6-35b-a3b — — Merged a fix to the go plugin that skips installing the golang-go deb package when a go build-snap is defined, resolving PATH conflicts. Approved by reviewers, passed CI with full coverage, and integrated into master.
qwen3.6-35b-a3b-mtp-q6 — — Merged to master. The Go plugin now skips installing the golang-go deb when a go build-snap is defined, resolving PATH priority conflicts. Maintainers accepted the fix, noting future logic may be needed for mixed snap and deb part configurations.

Update history

No update history recorded yet.

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.
82%
#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.
80%
#2957 go plugin: do not remove install /bin directory before build snapcraft merged Merged PR #2957 (commit 1fee618c0) stopped the Go plugin from purging $SNAPCRAFT_PART_INSTALL/bin before build, preserving stage-package files; added a spread test for coverage.
74%
#2323 go plugin: support for bases snapcraft merged Merged PR #2323 (commit 45a993643): Go plugin revamped to prefer the go snap from the Snap Store and allow installing golang-go build-packages on supported bases, fixing LP: #1794785.
71%
#2962 Go: unable to build snap when using `go mod` and main package is not in the root snapcraft merged Merged in commit dd7431146: the Go plugin now uses ./... to find main packages in subdirectories, with an integration test added.
70%
#1748202 go plugin doesn't honor godeps file snapcraft (launchpad) closed Closed after a maintainer explained that Snapcraft's dedicated godeps plugin must be used; the go plugin does not consume versions from a Godeps file.
70%
#3046 plugins: introduce v2.GoPlugin snapcraft merged Merged as 7e14dd039, adding v2.GoPlugin for go.mod-based projects and making get_build_snaps an abstract PluginV2 method.
70%