Snapcraft go plugin install issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Trying to snap godoc I run into this golang bug:
https:/
Sample run:
$ snapcraft
Preparing to pull godoc
Pulling godoc
go get -t -d golang.
Preparing to build godoc
Building godoc
go install golang.
go install golang.
Command '['/bin/sh', '/tmp/tmpws7rhnp0', 'go', 'install', 'golang.
(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.
What in the build process determines this should go into GOROOT instead of GOPATH?