Go 1.7 is required currently for the mantle code base, including cork. On Feb 22, 2017 10:17 PM, "Jovi Zhangwei" <[email protected]> wrote:
> Hi guys, > > Below errors came out when I tried to follow instructions in > https://coreos.com/os/docs/latest/sdk-modifying-coreos.html > > Great thanks for any help. > > > > $./build cork > > Building cork > > gopath/src/github.com/coreos/mantle/platform/journal.go:18:2: cannot find > package "context" in any of: > > /usr/lib/golang/src/context (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/context (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/api.go:20:2: > cannot find package "github.com/Azure/azure-sdk-for-go/management" in any > of: > > /usr/lib/golang/src/github.com/Azure/azure-sdk-for-go/management (from > $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/Azure/ > azure-sdk-for-go/management (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/replication.go:21:2: > cannot find package "github.com/Azure/azure-sdk-for-go/management/location" > in any of: > > /usr/lib/golang/src/github.com/Azure/azure-sdk-for-go/management/location > (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/Azure/ > azure-sdk-for-go/management/location (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/storage.go:24:2: > cannot find package "github.com/Azure/azure-sdk-for-go/management/ > storageservice" in any of: > > /usr/lib/golang/src/github.com/Azure/azure-sdk-for-go/ > management/storageservice (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/Azure/ > azure-sdk-for-go/management/storageservice (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/api.go:21:2: > cannot find package "github.com/Azure/azure-sdk-for-go/storage" in any of: > > /usr/lib/golang/src/github.com/Azure/azure-sdk-for-go/storage (from > $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/Azure/ > azure-sdk-for-go/storage (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/storage_mit.go:34:2: > cannot find package "github.com/Microsoft/azure-vhd-utils-for-go/upload" > in any of: > > /usr/lib/golang/src/github.com/Microsoft/azure-vhd-utils-for-go/upload > (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/ > Microsoft/azure-vhd-utils-for-go/upload (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/storage_mit.go:35:2: > cannot find package "github.com/Microsoft/azure-vhd-utils-for-go/upload/ > metadata" in any of: > > /usr/lib/golang/src/github.com/Microsoft/azure-vhd-utils- > for-go/upload/metadata (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/ > Microsoft/azure-vhd-utils-for-go/upload/metadata (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/storage_mit.go:36:2: > cannot find package "github.com/Microsoft/azure-vhd-utils-for-go/vhdcore/ > common" in any of: > > /usr/lib/golang/src/github.com/Microsoft/azure-vhd-utils- > for-go/vhdcore/common (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/ > Microsoft/azure-vhd-utils-for-go/vhdcore/common (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/api/azure/storage_mit.go:37:2: > cannot find package "github.com/Microsoft/azure-vhd-utils-for-go/vhdcore/ > diskstream" in any of: > > /usr/lib/golang/src/github.com/Microsoft/azure-vhd-utils- > for-go/vhdcore/diskstream (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/ > Microsoft/azure-vhd-utils-for-go/vhdcore/diskstream (from $GOPATH) > > gopath/src/github.com/coreos/mantle/cmd/cork/create.go:21:2: cannot find > package "github.com/coreos/go-semver/semver" in any of: > > /usr/lib/golang/src/github.com/coreos/go-semver/semver (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/coreos/go-semver/semver > (from $GOPATH) > > gopath/src/github.com/coreos/mantle/util/logio.go:23:2: cannot find > package "github.com/coreos/ioprogress" in any of: > > /usr/lib/golang/src/github.com/coreos/ioprogress (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/coreos/ioprogress (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/util/logio.go:24:2: cannot find > package "github.com/coreos/pkg/capnslog" in any of: > > /usr/lib/golang/src/github.com/coreos/pkg/capnslog (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/coreos/pkg/capnslog (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/base.go:25:2: cannot find > package "github.com/coreos/pkg/multierror" in any of: > > /usr/lib/golang/src/github.com/coreos/pkg/multierror (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/coreos/pkg/multierror (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/network/journal/record.go:22:2: > cannot find package "github.com/kballard/go-shellquote" in any of: > > /usr/lib/golang/src/github.com/kballard/go-shellquote (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/kballard/go-shellquote > (from $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/base.go:26:2: cannot find > package "github.com/satori/go.uuid" in any of: > > /usr/lib/golang/src/github.com/satori/go.uuid (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/satori/go.uuid (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/cli/cli.go:21:2: cannot find package " > github.com/spf13/cobra" in any of: > > /usr/lib/golang/src/github.com/spf13/cobra (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/spf13/cobra (from $GOPATH) > > gopath/src/github.com/coreos/mantle/cmd/cork/create.go:23:2: cannot find > package "github.com/spf13/pflag" in any of: > > /usr/lib/golang/src/github.com/spf13/pflag (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/spf13/pflag (from $GOPATH) > > gopath/src/github.com/coreos/mantle/system/ns/enter.go:20:2: cannot find > package "github.com/vishvananda/netns" in any of: > > /usr/lib/golang/src/github.com/vishvananda/netns (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/github.com/vishvananda/netns (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/sdk/verify.go:23:2: cannot find > package "golang.org/x/crypto/openpgp" in any of: > > /usr/lib/golang/src/golang.org/x/crypto/openpgp (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/crypto/openpgp (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/network/ssh.go:26:2: cannot find > package "golang.org/x/crypto/ssh" in any of: > > /usr/lib/golang/src/golang.org/x/crypto/ssh (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/crypto/ssh (from $GOPATH) > > gopath/src/github.com/coreos/mantle/network/ssh.go:27:2: cannot find > package "golang.org/x/crypto/ssh/agent" in any of: > > /usr/lib/golang/src/golang.org/x/crypto/ssh/agent (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/crypto/ssh/agent (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/platform/util.go:22:2: cannot find > package "golang.org/x/crypto/ssh/terminal" in any of: > > /usr/lib/golang/src/golang.org/x/crypto/ssh/terminal (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/crypto/ssh/terminal (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/auth/google.go:27:2: cannot find > package "golang.org/x/oauth2" in any of: > > /usr/lib/golang/src/golang.org/x/oauth2 (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/oauth2 (from $GOPATH) > > gopath/src/github.com/coreos/mantle/auth/google.go:28:2: cannot find > package "golang.org/x/oauth2/google" in any of: > > /usr/lib/golang/src/golang.org/x/oauth2/google (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/oauth2/google (from > $GOPATH) > > gopath/src/github.com/coreos/mantle/system/anonfile_linux.go:23:2: cannot > find package "golang.org/x/sys/unix" in any of: > > /usr/lib/golang/src/golang.org/x/sys/unix (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/golang.org/x/sys/unix (from $GOPATH) > > gopath/src/github.com/coreos/mantle/sdk/download.go:31:2: cannot find > package "google.golang.org/api/storage/v1" in any of: > > /usr/lib/golang/src/google.golang.org/api/storage/v1 (from $GOROOT) > > /home/xianwei.zw/mantle/gopath/src/google.golang.org/api/storage/v1 (from > $GOPATH) >
