Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file is not in GOPATH #164

Closed
skamenetskiy opened this issue Jan 25, 2018 · 2 comments
Closed

file is not in GOPATH #164

skamenetskiy opened this issue Jan 25, 2018 · 2 comments

Comments

@skamenetskiy
Copy link

Installed easyjson using:

go get -u github.com/mailru/easyjson/...

Trying to run:

easyjson -all user.go

Getting an error:

Error parsing user.go: file '/home/simon/go/src/github.com/severalnines/nc-auth/nc-user/user/user.go' is not in GOPATH

go env:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/simon/go"
GORACE=""
GOROOT="/usr/lib/go-1.9"
GOTOOLDIR="/usr/lib/go-1.9/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build757185734=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
@rvasily
Copy link
Contributor

rvasily commented Jan 25, 2018

GOPATH set and not default?
printenv | grep GOPATH
must be found here

@skamenetskiy
Copy link
Author

aha. was just setting a var, not exporting. it works now. thank's for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants