cucumber-attic / cucumber-engine

Shared go binary that can be used by all language implementations
MIT License
6 stars 0 forks source link

Can't build this #2

Closed aslakhellesoy closed 6 years ago

aslakhellesoy commented 6 years ago

I tried the instructions and got this:

make setup
go get -u \
        github.com/Masterminds/glide \
        gopkg.in/alecthomas/gometalinter.v2 \
        github.com/onsi/ginkgo/ginkgo
glide install
make: glide: No such file or directory
make: *** [setup] Error 1

Any ideas? Can you set up CI?

aslakhellesoy commented 6 years ago

I assume I just need to define $GOPATH - I'm just starting my Go journey.

Let's make it easy to stand up for people who don't know the first thing about Go :-)

aslakhellesoy commented 6 years ago

Just saw you have set up CI - maybe add a banner in README :-)

charlierudolph commented 6 years ago

Auhh. You need to add $GOPATH/bin to your path, I'll add a note about that.

charlierudolph commented 6 years ago

Can you please review the current CONTRIBUTING.md? (i added the part about $GOPATH/bin

charlierudolph commented 6 years ago

@aslakhellesoy have you been able to build this? I just got it working again after the rename

aslakhellesoy commented 6 years ago

I get this error with make spec:

make spec
go install
main.go:3:8: cannot find package "github.com/cucumber/cucumber-engine" in any of:
    /usr/local/Cellar/go/1.10.3/libexec/src/github.com/cucumber/cucumber-engine (from $GOROOT)
    /Users/aslakhellesoy/go/src/github.com/cucumber/cucumber-engine (from $GOPATH)
make: *** [build] Error 1

My GOPATH=/Users/aslakhellesoy/go I tried ln -s $(pwd) ${GOPATH}/src/github.com/cucumber/cucumber-engine, but then got this error:

make spec
go install
main.go:3:8: import "github.com/cucumber/cucumber-engine" is a program, not an importable package
make: *** [build] Error 1

I removed the symlink. Are there any other steps I'm missing?

aslakhellesoy commented 6 years ago

I got it to build! I missed that I had to clone it into the ${GOPATH}/src/github.com/cucumber/cucumber-engine directory :-)