I am trying to use go get to download the "dlv" package but am running into the following error:
go get github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/pkg/config
src/github.com/derekparker/delve/pkg/config/config.go:10:2: error: import file ‘gopkg.in/yaml.v2’ not found
yaml "gopkg.in/yaml.v2"
^
src/github.com/derekparker/delve/pkg/config/config.go:69:8: error: reference to undefined name ‘yaml’
err = yaml.Unmarshal(data, &c)
A similar thing happens when I try to install "go-plus" for atom. After exhausting research I am not sure what the problem is, my go env is:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/martin/go"
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1"
GO15VENDOREXPERIMENT="1"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"
go version: go version go1.6.1 gccgo (GCC) 6.3.1 20170109 linux/amd64
I am able to install other packages with go get just fine, only when external dependencies are involved the import files cannot be found.
Any tips are greatly appreciated