optiopay / klar

Integration of Clair and Docker Registry
MIT License
507 stars 140 forks source link

cannot build code with go in linux #50

Closed umanam closed 6 years ago

umanam commented 6 years ago

Cannot build code with go in linux environment.

go build . main.go:10:2: cannot find package "github.com/optiopay/klar/clair" in any of: /usr/local/go/src/github.com/optiopay/klar/clair (from $GOROOT) /root/go/src/github.com/optiopay/klar/clair (from $GOPATH) main.go:11:2: cannot find package "github.com/optiopay/klar/docker" in any of: /usr/local/go/src/github.com/optiopay/klar/docker (from $GOROOT) /root/go/src/github.com/optiopay/klar/docker (from $GOPATH)

hashmap commented 6 years ago

Make sure that Klar source code is in $GOPATH/src/github.com/optiopay/klar