pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

Gom install fails #86

Closed ChristianKniep closed 8 years ago

ChristianKniep commented 8 years ago

Hey there,

I put zmq4 into my Gomfile and while gom install -ing I get...

# github.com/pebbe/zmq4/examples_security
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/ironhouse.go:16: main redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/grasslands.go:15
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/ironhouse.go:59: checkErr redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/grasslands.go:39
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/stonehouse.go:17: main redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/ironhouse.go:16
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/stonehouse.go:60: checkErr redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/ironhouse.go:59
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/strawhouse.go:17: main redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/stonehouse.go:17
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/strawhouse.go:55: checkErr redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/stonehouse.go:60
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/woodhouse.go:16: main redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/strawhouse.go:17
/Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/woodhouse.go:52: checkErr redeclared in this block
    previous declaration at /Users/ckniep/git/QNIBCollect/vendor/src/github.com/pebbe/zmq4/examples_security/strawhouse.go:55
gom:  exit status 2

I took the liberty to fork and kick out the security examples and with this it works...

gom "github.com/qnib/zmq4", :tag => "trimmed_down"
pebbe commented 8 years ago

The problem is gom or your gomfile.

ChristianKniep commented 8 years ago

Hey @pebbe, but when trimmed down it was fine. But ok, if it's just me I will close the ticket. Thanks and keep up the good work.