go plugin: GOROOT env confuses snapcraft go
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
i dont think GOROOT or alike should cause side effects for go plugin projects that use their own downloaded go runtime etc. and have their own workspace to build the code...
asac@bigos:
asac@bigos:
Pulling gopaste
From https:/
* branch HEAD -> FETCH_HEAD
Already up-to-date.
env GOPATH=
go: cannot find GOROOT directory: /home/asac/
Command '['/bin/sh', '/tmp/tmpvnr6ul5r', 'env', 'GOPATH=
Also if path exist it still causes troubles:
asac@bigos:
asac@bigos:
Pulling gopaste
From https:/
* branch HEAD -> FETCH_HEAD
Already up-to-date.
env GOPATH=
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package database/sql: unrecognized import path "database/sql" (import path does not begin with hostname)
package flag: unrecognized import path "flag" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package math: unrecognized import path "math" (import path does not begin with hostname)
package reflect: unrecognized import path "reflect" (import path does not begin with hostname)
package sort: unrecognized import path "sort" (import path does not begin with hostname)
package strings: unrecognized import path "strings" (import path does not begin with hostname)
package sync: unrecognized import path "sync" (import path does not begin with hostname)
package database/
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package io: unrecognized import path "io" (import path does not begin with hostname)
package net/url: unrecognized import path "net/url" (import path does not begin with hostname)
package runtime: unrecognized import path "runtime" (import path does not begin with hostname)
package strconv: unrecognized import path "strconv" (import path does not begin with hostname)
package time: unrecognized import path "time" (import path does not begin with hostname)
package unsafe: unrecognized import path "unsafe" (import path does not begin with hostname)
package html/template: unrecognized import path "html/template" (import path does not begin with hostname)
package log: unrecognized import path "log" (import path does not begin with hostname)
package math/rand: unrecognized import path "math/rand" (import path does not begin with hostname)
package net/http: unrecognized import path "net/http" (import path does not begin with hostname)
package os: unrecognized import path "os" (import path does not begin with hostname)
package path/filepath: unrecognized import path "path/filepath" (import path does not begin with hostname)
package regexp: unrecognized import path "regexp" (import path does not begin with hostname)
Command '['/bin/sh', '/tmp/tmptkwztlze', 'env', 'GOPATH=
Fix here: https:/ /github. com/ubuntu- core/snapcraft/ pull/269