I am trying to build a package for distrobuilder for Gentoo.
distrobuilder does not have go.sum files or a vendors directory for handling dependencies. According to this post, the official release tarball should contain the required dependencies.
When I try to compile distrobuilder from this release tarball, it fails:
lxduser@t470 2020-08-14 21:43:26 ~/src/distrobuilder $ ls
insgesamt 16M
15769656 drwxr-xr-x 3 lxduser lxduser 4,0K 14. Aug 21:43 .
14420085 drwx------ 56 lxduser lxduser 4,0K 14. Aug 14:11 ..
15777807 drwxr-xr-x 12 lxduser lxduser 4,0K 21. Okt 2019 distrobuilder-1.0
15732073 -rw-r--r-- 1 lxduser lxduser 16M 21. Okt 2019 distrobuilder-1.0.tar.gz
15732386 -rw-r--r-- 1 lxduser lxduser 833 14. Aug 14:12 distrobuilder-1.0.tar.gz.asc
15732472 -rwxr-xr-x 1 lxduser lxduser 120 14. Aug 17:26 ego_sum.sh
lxduser@t470 2020-08-14 21:43:37 ~/src/distrobuilder $ cd distrobuilder-1.0
lxduser@t470 2020-08-14 21:43:42 ~/src/distrobuilder/distrobuilder-1.0 $ ls
insgesamt 84K
15777807 drwxr-xr-x 12 lxduser lxduser 4,0K 21. Okt 2019 .
15769656 drwxr-xr-x 3 lxduser lxduser 4,0K 14. Aug 21:43 ..
15737764 -rw-r--r-- 1 lxduser lxduser 243 21. Okt 2019 AUTHORS
15737763 -rw-r--r-- 1 lxduser lxduser 2,7K 21. Okt 2019 CONTRIBUTING.md
15737762 -rw-r--r-- 1 lxduser lxduser 12K 21. Okt 2019 COPYING
15827043 drwxr-xr-x 3 lxduser lxduser 4,0K 21. Okt 2019 data
15777808 drwxr-xr-x 3 lxduser lxduser 4,0K 21. Okt 2019 _dist
15827042 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 distrobuilder
15827040 drwxr-xr-x 3 lxduser lxduser 4,0K 21. Okt 2019 doc
15827039 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 generators
15818868 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 image
15737761 -rw-r--r-- 1 lxduser lxduser 1,4K 21. Okt 2019 Makefile
15810676 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 managers
15737710 -rw-r--r-- 1 lxduser lxduser 79 21. Okt 2019 mkdocs.yml
15737760 lrwxrwxrwx 1 lxduser lxduser 12 21. Okt 2019 README.md -> doc/index.md
15794292 drwxr-xr-x 3 lxduser lxduser 4,0K 21. Okt 2019 shared
15737766 -rw-r--r-- 1 lxduser lxduser 519 21. Okt 2019 .snapcraft.yaml
15786100 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 sources
15777907 drwxr-xr-x 2 lxduser lxduser 4,0K 21. Okt 2019 testdata
15737765 -rw-r--r-- 1 lxduser lxduser 364 21. Okt 2019 .travis.yml
lxduser@t470 2020-08-14 21:43:43 ~/src/distrobuilder/distrobuilder-1.0 $ echo $GOPATH
lxduser@t470 2020-08-14 21:44:13 ~/src/distrobuilder/distrobuilder-1.0 $ LANG=C GOPATH="$(pwd)/_dist" make
gofmt -s -w .
go get -t -v -d ./...
go install -v ./...
go install: no install location for directory /home/lxduser/src/distrobuilder/distrobuilder-1.0/distrobuilder outside GOPATH
For more details see: 'go help gopath'
make: *** [Makefile:9: default] Error 1
lxduser@t470 2020-08-14 21:44:32 ~/src/distrobuilder/distrobuilder-1.0 $ echo $GOPATH
lxduser@t470 2020-08-14 21:44:39 ~/src/distrobuilder/distrobuilder-1.0 $ LANG=C make
gofmt -s -w .
go get -t -v -d ./...
go install -v ./...
go install: no install location for directory /home/lxduser/src/distrobuilder/distrobuilder-1.0/distrobuilder outside GOPATH
For more details see: 'go help gopath'
make: *** [Makefile:9: default] Error 1
lxduser@t470 2020-08-14 21:45:07 ~/src/distrobuilder/distrobuilder-1.0 $
If I set the source root as the GOPATH, it downloads the dependencies and still fails:
lxduser@t470 2020-08-14 21:45:07 ~/src/distrobuilder/distrobuilder-1.0 $ LANG=C GOPATH="$(pwd)" make
gofmt -s -w .
go get -t -v -d ./...
github.com/lxc/distrobuilder (download)
github.com/flosch/pongo2 (download)
github.com/lxc/lxd (download)
github.com/gorilla/websocket (download)
github.com/pkg/errors (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
get "gopkg.in/robfig/cron.v2": found meta tag get.metaImport{Prefix:"gopkg.in/robfig/cron.v2", VCS:"git", RepoRoot:"https://gopkg.in/robfig/cron.v2"} at //gopkg.in/robfig/cron.v2?go-get=1
gopkg.in/robfig/cron.v2 (download)
get "gopkg.in/flosch/pongo2.v3": found meta tag get.metaImport{Prefix:"gopkg.in/flosch/pongo2.v3", VCS:"git", RepoRoot:"https://gopkg.in/flosch/pongo2.v3"} at //gopkg.in/flosch/pongo2.v3?go-get=1
gopkg.in/flosch/pongo2.v3 (download)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at //gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/gobuffalo/packr (download)
github.com/gobuffalo/packd (download)
github.com/gobuffalo/logger (download)
github.com/sirupsen/logrus (download)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
golang.org/x/crypto (download)
github.com/karrick/godirwalk (download)
github.com/markbates/errx (download)
github.com/markbates/oncer (download)
github.com/markbates/safe (download)
github.com/mudler/docker-companion (download)
get "gopkg.in/antchfx/htmlquery.v1": found meta tag get.metaImport{Prefix:"gopkg.in/antchfx/htmlquery.v1", VCS:"git", RepoRoot:"https://gopkg.in/antchfx/htmlquery.v1"} at //gopkg.in/antchfx/htmlquery.v1?go-get=1
gopkg.in/antchfx/htmlquery.v1 (download)
github.com/antchfx/xpath (download)
github.com/golang/groupcache (download)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
golang.org/x/net (download)
get "golang.org/x/net/html/charset": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html/charset?go-get=1
get "golang.org/x/net/html/charset": verifying non-authoritative meta tag
get "golang.org/x/text/encoding": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/encoding?go-get=1
get "golang.org/x/text/encoding": verifying non-authoritative meta tag
golang.org/x/text (download)
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
get "golang.org/x/text/encoding/charmap": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/encoding/charmap?go-get=1
get "golang.org/x/text/encoding/charmap": verifying non-authoritative meta tag
get "golang.org/x/text/encoding/htmlindex": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/encoding/htmlindex?go-get=1
get "golang.org/x/text/encoding/htmlindex": verifying non-authoritative meta tag
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
github.com/stretchr/testify (download)
github.com/davecgh/go-spew (download)
github.com/pmezard/go-difflib (download)
get "gopkg.in/yaml.v3": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v3", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v3"} at //gopkg.in/yaml.v3?go-get=1
gopkg.in/yaml.v3 (download)
src/github.com/gobuffalo/packr/env.go:4:2: cannot find package "github.com/gobuffalo/envy" in any of:
/usr/lib/go/src/github.com/gobuffalo/envy (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/gobuffalo/envy (from $GOPATH)
src/github.com/gobuffalo/packr/v2/jam/store/disk.go:25:2: cannot find package "github.com/rogpeppe/go-internal/modfile" in any of:
/usr/lib/go/src/github.com/rogpeppe/go-internal/modfile (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/rogpeppe/go-internal/modfile (from $GOPATH)
src/github.com/gobuffalo/packr/v2/jam/store/disk.go:28:2: cannot find package "golang.org/x/sync/errgroup" in any of:
/usr/lib/go/src/golang.org/x/sync/errgroup (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/sync/errgroup (from $GOPATH)
src/github.com/gobuffalo/packr/v2/packr2/cmd/fix/imports.go:16:2: cannot find package "golang.org/x/tools/go/ast/astutil" in any of:
/usr/lib/go/src/golang.org/x/tools/go/ast/astutil (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/ast/astutil (from $GOPATH)
src/github.com/golang/groupcache/groupcachepb/groupcache.pb.go:7:8: cannot find package "github.com/golang/protobuf/proto" in any of:
/usr/lib/go/src/github.com/golang/protobuf/proto (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/golang/protobuf/proto (from $GOPATH)
src/github.com/karrick/godirwalk/examples/find-fast/main.go:16:2: cannot find package "github.com/karrick/golf" in any of:
/usr/lib/go/src/github.com/karrick/golf (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/karrick/golf (from $GOPATH)
src/github.com/karrick/godirwalk/examples/find-fast/main.go:17:2: cannot find package "github.com/mattn/go-isatty" in any of:
/usr/lib/go/src/github.com/mattn/go-isatty (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mattn/go-isatty (from $GOPATH)
src/github.com/lxc/lxd/client/lxd.go:13:2: cannot find package "gopkg.in/macaroon-bakery.v2/bakery" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/bakery (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/bakery (from $GOPATH)
src/github.com/lxc/lxd/client/connection.go:13:2: cannot find package "gopkg.in/macaroon-bakery.v2/httpbakery" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/httpbakery (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/httpbakery (from $GOPATH)
src/github.com/spf13/cobra/doc/man_docs.go:27:2: cannot find package "github.com/cpuguy83/go-md2man/v2/md2man" in any of:
/usr/lib/go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOPATH)
src/github.com/lxc/lxd/shared/i18n/i18n_linux.go:7:2: cannot find package "github.com/gosexy/gettext" in any of:
/usr/lib/go/src/github.com/gosexy/gettext (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/gosexy/gettext (from $GOPATH)
src/github.com/lxc/lxd/lxc/config/config.go:7:2: cannot find package "github.com/juju/persistent-cookiejar" in any of:
/usr/lib/go/src/github.com/juju/persistent-cookiejar (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/juju/persistent-cookiejar (from $GOPATH)
src/github.com/lxc/lxd/shared/log15/root.go:7:2: cannot find package "github.com/mattn/go-colorable" in any of:
/usr/lib/go/src/github.com/mattn/go-colorable (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mattn/go-colorable (from $GOPATH)
src/github.com/lxc/lxd/lxc/utils/table.go:10:2: cannot find package "github.com/olekukonko/tablewriter" in any of:
/usr/lib/go/src/github.com/olekukonko/tablewriter (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/olekukonko/tablewriter (from $GOPATH)
src/github.com/lxc/lxd/lxc/config/remote.go:14:2: cannot find package "gopkg.in/juju/environschema.v1/form" in any of:
/usr/lib/go/src/gopkg.in/juju/environschema.v1/form (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/juju/environschema.v1/form (from $GOPATH)
src/github.com/lxc/lxd/lxc/config/remote.go:16:2: cannot find package "gopkg.in/macaroon-bakery.v2/httpbakery/form" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/httpbakery/form (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/httpbakery/form (from $GOPATH)
src/github.com/lxc/lxd/lxc/utils.go:11:2: cannot find package "vbom.ml/util/sortorder" in any of:
/usr/lib/go/src/vbom.ml/util/sortorder (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/vbom.ml/util/sortorder (from $GOPATH)
src/github.com/lxc/lxd/lxd/db/testing.go:15:2: cannot find package "github.com/canonical/go-dqlite" in any of:
/usr/lib/go/src/github.com/canonical/go-dqlite (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/canonical/go-dqlite (from $GOPATH)
src/github.com/lxc/lxd/lxd/db/raft.go:8:2: cannot find package "github.com/canonical/go-dqlite/client" in any of:
/usr/lib/go/src/github.com/canonical/go-dqlite/client (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/canonical/go-dqlite/client (from $GOPATH)
src/github.com/lxc/lxd/lxd/db/db.go:13:2: cannot find package "github.com/canonical/go-dqlite/driver" in any of:
/usr/lib/go/src/github.com/canonical/go-dqlite/driver (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/canonical/go-dqlite/driver (from $GOPATH)
src/github.com/lxc/lxd/lxd/maas/controller.go:8:2: cannot find package "github.com/juju/gomaasapi" in any of:
/usr/lib/go/src/github.com/juju/gomaasapi (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/juju/gomaasapi (from $GOPATH)
src/github.com/lxc/lxd/lxd/db/query/retry.go:8:2: cannot find package "github.com/mattn/go-sqlite3" in any of:
/usr/lib/go/src/github.com/mattn/go-sqlite3 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mattn/go-sqlite3 (from $GOPATH)
src/github.com/lxc/lxd/lxd/events/events.go:10:2: cannot find package "github.com/pborman/uuid" in any of:
/usr/lib/go/src/github.com/pborman/uuid (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/pborman/uuid (from $GOPATH)
src/github.com/lxc/lxd/lxd/sys/apparmor.go:15:2: cannot find package "github.com/syndtr/gocapability/capability" in any of:
/usr/lib/go/src/github.com/syndtr/gocapability/capability (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/syndtr/gocapability/capability (from $GOPATH)
src/github.com/lxc/lxd/lxd/util/sys.go:12:2: cannot find package "gopkg.in/lxc/go-lxc.v2" in any of:
/usr/lib/go/src/gopkg.in/lxc/go-lxc.v2 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/lxc/go-lxc.v2 (from $GOPATH)
src/github.com/lxc/lxd/lxd/endpoints/endpoints.go:13:2: cannot find package "gopkg.in/tomb.v2" in any of:
/usr/lib/go/src/gopkg.in/tomb.v2 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/tomb.v2 (from $GOPATH)
src/github.com/lxc/lxd/lxd/daemon.go:19:2: cannot find package "github.com/CanonicalLtd/candidclient" in any of:
/usr/lib/go/src/github.com/CanonicalLtd/candidclient (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/CanonicalLtd/candidclient (from $GOPATH)
src/github.com/lxc/lxd/lxd/cluster/membership.go:10:2: cannot find package "github.com/canonical/go-dqlite/app" in any of:
/usr/lib/go/src/github.com/canonical/go-dqlite/app (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/canonical/go-dqlite/app (from $GOPATH)
src/github.com/lxc/lxd/lxd/instance/drivers/qmp/monitor.go:11:2: cannot find package "github.com/digitalocean/go-qemu/qmp" in any of:
/usr/lib/go/src/github.com/digitalocean/go-qemu/qmp (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/digitalocean/go-qemu/qmp (from $GOPATH)
src/github.com/lxc/lxd/lxd/instances_post.go:16:2: cannot find package "github.com/dustinkirkland/golang-petname" in any of:
/usr/lib/go/src/github.com/dustinkirkland/golang-petname (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/dustinkirkland/golang-petname (from $GOPATH)
src/github.com/lxc/lxd/lxd/device/unix_hotplug.go:9:2: cannot find package "github.com/farjump/go-libudev" in any of:
/usr/lib/go/src/github.com/farjump/go-libudev (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/farjump/go-libudev (from $GOPATH)
src/github.com/lxc/lxd/lxd/device/nic_bridged.go:14:2: cannot find package "github.com/google/gopacket" in any of:
/usr/lib/go/src/github.com/google/gopacket (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/google/gopacket (from $GOPATH)
src/github.com/lxc/lxd/lxd/device/nic_bridged.go:15:2: cannot find package "github.com/google/gopacket/layers" in any of:
/usr/lib/go/src/github.com/google/gopacket/layers (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/google/gopacket/layers (from $GOPATH)
src/github.com/lxc/lxd/lxd/api.go:10:2: cannot find package "github.com/gorilla/mux" in any of:
/usr/lib/go/src/github.com/gorilla/mux (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/gorilla/mux (from $GOPATH)
src/github.com/lxc/lxd/lxd/cluster/migrate.go:11:2: cannot find package "github.com/hashicorp/go-msgpack/codec" in any of:
/usr/lib/go/src/github.com/hashicorp/go-msgpack/codec (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/hashicorp/go-msgpack/codec (from $GOPATH)
src/github.com/lxc/lxd/lxd/resources/gpu.go:15:2: cannot find package "github.com/jaypipes/pcidb" in any of:
/usr/lib/go/src/github.com/jaypipes/pcidb (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/jaypipes/pcidb (from $GOPATH)
src/github.com/lxc/lxd/lxd/images.go:25:2: cannot find package "github.com/kballard/go-shellquote" in any of:
/usr/lib/go/src/github.com/kballard/go-shellquote (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/kballard/go-shellquote (from $GOPATH)
src/github.com/lxc/lxd/lxd/dnsmasq/dhcpalloc/dhcpalloc.go:13:2: cannot find package "github.com/mdlayher/netx/eui64" in any of:
/usr/lib/go/src/github.com/mdlayher/netx/eui64 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mdlayher/netx/eui64 (from $GOPATH)
src/github.com/lxc/lxd/lxd/vsock/vsock.go:8:2: cannot find package "github.com/mdlayher/vsock" in any of:
/usr/lib/go/src/github.com/mdlayher/vsock (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mdlayher/vsock (from $GOPATH)
src/github.com/lxc/lxd/lxd/main_forkdns.go:13:2: cannot find package "github.com/miekg/dns" in any of:
/usr/lib/go/src/github.com/miekg/dns (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/miekg/dns (from $GOPATH)
src/github.com/lxc/lxd/lxd/cluster/raft/bolt.go:9:2: cannot find package "go.etcd.io/bbolt" in any of:
/usr/lib/go/src/go.etcd.io/bbolt (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/go.etcd.io/bbolt (from $GOPATH)
src/github.com/lxc/lxd/lxd/main_forkdns.go:15:2: cannot find package "gopkg.in/fsnotify.v0" in any of:
/usr/lib/go/src/gopkg.in/fsnotify.v0 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/fsnotify.v0 (from $GOPATH)
src/github.com/lxc/lxd/lxd/daemon.go:28:2: cannot find package "gopkg.in/macaroon-bakery.v2/bakery/checkers" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/bakery/checkers (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/bakery/checkers (from $GOPATH)
src/github.com/lxc/lxd/lxd/daemon.go:29:2: cannot find package "gopkg.in/macaroon-bakery.v2/bakery/identchecker" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/bakery/identchecker (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/bakery/identchecker (from $GOPATH)
src/github.com/lxc/lxd/lxd/rbac/server.go:19:2: cannot find package "gopkg.in/macaroon-bakery.v2/httpbakery/agent" in any of:
/usr/lib/go/src/gopkg.in/macaroon-bakery.v2/httpbakery/agent (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/macaroon-bakery.v2/httpbakery/agent (from $GOPATH)
src/github.com/lxc/lxd/test/macaroon-identity/auth.go:15:2: cannot find package "github.com/juju/httprequest" in any of:
/usr/lib/go/src/github.com/juju/httprequest (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/juju/httprequest (from $GOPATH)
src/github.com/lxc/lxd/test/macaroon-identity/formschema.go:4:2: cannot find package "github.com/juju/schema" in any of:
/usr/lib/go/src/github.com/juju/schema (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/juju/schema (from $GOPATH)
src/github.com/lxc/lxd/test/macaroon-identity/auth.go:16:2: cannot find package "github.com/rogpeppe/fastuuid" in any of:
/usr/lib/go/src/github.com/rogpeppe/fastuuid (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/rogpeppe/fastuuid (from $GOPATH)
src/github.com/lxc/lxd/test/macaroon-identity/formschema.go:6:2: cannot find package "gopkg.in/juju/environschema.v1" in any of:
/usr/lib/go/src/gopkg.in/juju/environschema.v1 (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/gopkg.in/juju/environschema.v1 (from $GOPATH)
src/github.com/spf13/cobra/cobra/cmd/root.go:19:2: cannot find package "github.com/mitchellh/go-homedir" in any of:
/usr/lib/go/src/github.com/mitchellh/go-homedir (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/mitchellh/go-homedir (from $GOPATH)
src/github.com/spf13/cobra/cobra/cmd/init.go:22:2: cannot find package "github.com/spf13/viper" in any of:
/usr/lib/go/src/github.com/spf13/viper (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/spf13/viper (from $GOPATH)
src/github.com/stretchr/testify/mock/mock.go:15:2: cannot find package "github.com/stretchr/objx" in any of:
/usr/lib/go/src/github.com/stretchr/objx (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/github.com/stretchr/objx (from $GOPATH)
src/golang.org/x/net/http2/h2demo/h2demo.go:29:2: cannot find package "cloud.google.com/go/storage" in any of:
/usr/lib/go/src/cloud.google.com/go/storage (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/cloud.google.com/go/storage (from $GOPATH)
src/golang.org/x/net/http2/h2demo/h2demo.go:30:2: cannot find package "go4.org/syncutil/singleflight" in any of:
/usr/lib/go/src/go4.org/syncutil/singleflight (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/go4.org/syncutil/singleflight (from $GOPATH)
src/golang.org/x/net/http2/h2demo/h2demo.go:31:2: cannot find package "golang.org/x/build/autocertcache" in any of:
/usr/lib/go/src/golang.org/x/build/autocertcache (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/build/autocertcache (from $GOPATH)
src/golang.org/x/text/cmd/gotext/main.go:31:2: cannot find package "golang.org/x/tools/go/buildutil" in any of:
/usr/lib/go/src/golang.org/x/tools/go/buildutil (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/buildutil (from $GOPATH)
src/golang.org/x/text/message/pipeline/extract.go:23:2: cannot find package "golang.org/x/tools/go/callgraph" in any of:
/usr/lib/go/src/golang.org/x/tools/go/callgraph (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/callgraph (from $GOPATH)
src/golang.org/x/text/message/pipeline/extract.go:24:2: cannot find package "golang.org/x/tools/go/callgraph/cha" in any of:
/usr/lib/go/src/golang.org/x/tools/go/callgraph/cha (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/callgraph/cha (from $GOPATH)
src/golang.org/x/text/message/pipeline/extract.go:25:2: cannot find package "golang.org/x/tools/go/loader" in any of:
/usr/lib/go/src/golang.org/x/tools/go/loader (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/loader (from $GOPATH)
src/golang.org/x/text/message/pipeline/extract.go:26:2: cannot find package "golang.org/x/tools/go/ssa" in any of:
/usr/lib/go/src/golang.org/x/tools/go/ssa (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/ssa (from $GOPATH)
src/golang.org/x/text/message/pipeline/extract.go:27:2: cannot find package "golang.org/x/tools/go/ssa/ssautil" in any of:
/usr/lib/go/src/golang.org/x/tools/go/ssa/ssautil (from $GOROOT)
/home/lxduser/src/distrobuilder/distrobuilder-1.0/src/golang.org/x/tools/go/ssa/ssautil (from $GOPATH)
make: *** [Makefile:8: default] Error 1
Also, this release tarball dates from October 2019. Is it known to build and run properly?