4

When I'm trying to build the binaries using: ./scripts/build.sh I have this error: enter image description here

1 Answer 1

2

Looking at the error it seems your go directory structure is incorrect. You need to clone the git repo in this directory:

  • $GOPATH/src/github.com/lightyeario/kelp

Make sure your $GOPATH is set up correctly: echo $GOPATH


Before you compile the binary with the build script, you will need to install the dependencies using glide

  • curl https://glide.sh/get | sh.

Once you have set up glide, you can run glide install to install the dependencies specified in the glide.yaml file. This will create a vendor directory which will be used to find the packages needed to compile the binary.

Once this is all set up, you can invoke the build script

  • ./scripts/build.sh
1
  • 1
    Yes the problem was in $GOPATH. After I clone clone the git repo in this directory: "$GOPATH/src/github.com/lightyeario/kelp" - it BUILD SUCCESSFUL Aug 14, 2018 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.