dokku / plugn

Hook system that lets users extend your application with plugins
MIT License
82 stars 22 forks source link

`go get github.com/dokku/plugn` fails #16

Closed schasse closed 8 years ago

schasse commented 8 years ago

Hi there,

go get fails, because there seems to be some files missing of the dependency github.com/progrium/duplex

pi@raspberrypi:~/source/plugn $ go get github.com/dokku/plugn
package github.com/progrium/duplex/poc2/duplex: cannot find package "github.com/progrium/duplex/poc2/duplex" in any of:
        /home/pi/source/go/src/github.com/progrium/duplex/poc2/duplex (from $GOROOT)
        /home/pi/source/gocode/src/github.com/progrium/duplex/poc2/duplex (from $GOPATH)
pi@raspberrypi:~/source/plugn $ go version
go version go1.5 linux/arm

I can't use a release, because I want to compile it for a raspberrypi...

michaelshobbs commented 8 years ago

@progrium ping!

michaelshobbs commented 8 years ago

Looking at the commit history, duplex was refactored in Feb 2016. That refactor seems to break plugn at the moment even after updating repo paths

https://github.com/progrium/duplex/commits/master

./gateway.go:34: gateway.Shutdown undefined (type *duplex.Peer has no field or method Shutdown)
./gateway.go:60: not enough arguments in call to duplex.NewPeer
./gateway.go:61: gateway.SetOption undefined (type *duplex.Peer has no field or method SetOption)
./gateway.go:61: undefined: duplex.OptName
./gateway.go:62: gateway.Bind undefined (type *duplex.Peer has no field or method Bind)
./gateway.go:69: gateway.Accept undefined (type *duplex.Peer has no field or method Accept)
./gateway.go:80: gateway.Peers undefined (type *duplex.Peer has no field or method Peers)
./gateway.go:82: too many arguments in call to gateway.Open
./gateway.go:82: assignment count mismatch: 2 = 1
./gateway.go:104: not enough arguments in call to duplex.NewPeer
./gateway.go:104: too many errors
schasse commented 8 years ago

Thanks for your investigation. I haven't done any programming in go yet. But i read, that you can't lock a dependency to a specific version or git commit. Is that true? Maybe that could fix the build.

schasse commented 8 years ago

:+1: worked for me