← Back to issue list

Snapcraft go plugin install issues

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1612741
Type
issue
State
open
Author
~josvaz
Labels
Created
Updated
Closed

Current evaluation

Snapcraft's go plugin fails to build godoc because go install writes to $GOROOT/bin (permission denied), a known golang bug; reporter also asks snapcraft to prevent installs into $GOROOT or force install path inside the snap. No labels, no comments, no maintainer activity in ~10 years.

Suggested action: needs triage

Reason: The issue has no labels, no comments, and no maintainer interaction (0 comments, last activity 3658 days ago), so it has never been triaged. It is a real bug/feature request (go plugin install path handling), not a support question, but it is very old and references a golang bug (golang/go#15106) that has long since been fixed, so the original reproduction may no longer apply. A maintainer should confirm whether the go plugin still has this behavior before deciding to close or address it.

Impact: 30 Quick Win: 13.5 Staleness: 95 Complexity: 55 Confidence: 60 Support Request: 20

Issue body

Trying to snap godoc I run into this golang bug: https://github.com/golang/go/issues/15106 Sample run: $ snapcraft Preparing to pull godoc Pulling godoc go get -t -d golang.org/x/tools/cmd/godoc Preparing to build godoc Building godoc go install golang.org/x/tools/cmd/godoc go install golang.org/x/tools/cmd/godoc: open /usr/lib/go-1.6/bin/godoc: permission denied Command '['/bin/sh', '/tmp/tmpws7rhnp0', 'go', 'install', 'golang.org/x/tools/cmd/godoc']' returned non-zero exit status 1 (See attached snapcraft.yaml) Basically godoc is special and go install tries to put it in $GOROOT/bin instead of $GOPATH/bin Even when when this is fixed in golang, snapcraft should NOT allow to install into $GOROOT or give the user a way out, like building without installing or forcing installation path within the snap environment.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 13.5
Staleness: 95
Complexity: 55
Confidence: 60
Support Request: 20
needs triage Snapcraft's go plugin fails to build godoc because go install writes to $GOROOT/bin (permission denied), a known golang bug; reporter also asks snapcraft to prevent installs into $GOROOT or force install path inside the snap. No labels, no comments, no maintainer activity in ~10 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 20
close stale Report of Snapcraft Go plugin failing to install godoc due to Go 1.6 writing to GOROOT/bin. Issue is over 10 years old with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 20
close stale Reports a Go plugin permission error when building godoc due to go install targeting $GOROOT/bin. Unlabeled, no maintainer comments, inactive for over a decade.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 30
close stale Reports a permission denied error when snapcraft's go plugin runs go install for godoc, attempting to write to $GOROOT/bin. Issue is nearly 10 years old with no maintainer interaction or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 15
Confidence: 90
Support Request: 10
close stale Snapcraft's Go plugin fails when building packages that install to $GOROOT/bin, causing permission errors. Unaddressed with zero comments and years of inactivity. Snapcraft should block $GOROOT writes or allow overriding the install path. Needs triage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1616985 the go plugin doesn't use go build-snaps snapcraft (launchpad) closed 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.
72%
#2194 plugins: do not install go debs if go snap is used snapcraft merged 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.
70%