etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
497 stars 90 forks source link

Go get gives undefined errors/warnings #89

Closed theel0ja closed 5 years ago

theel0ja commented 5 years ago

Golang version

go version go1.10.7 linux/arm64

(installed from stretch-backports)

Operating system

Debian 9.6

What I've tried to do

install libprotoc-dev from stretch-backports

Console output

user@server:~$ go get -u github.com/etix/mirrorbits
# github.com/etix/mirrorbits/rpc
go/src/github.com/etix/mirrorbits/rpc/rpc.go:84:59: undefined: VersionReply
go/src/github.com/etix/mirrorbits/rpc/rpc.go:113:52: undefined: MatchRequest
go/src/github.com/etix/mirrorbits/rpc/rpc.go:113:68: undefined: MatchReply
go/src/github.com/etix/mirrorbits/rpc/rpc.go:137:53: undefined: ChangeStatusRequest
go/src/github.com/etix/mirrorbits/rpc/rpc.go:154:60: undefined: MirrorListReply
go/src/github.com/etix/mirrorbits/rpc/rpc.go:198:51: undefined: MirrorIDRequest
go/src/github.com/etix/mirrorbits/rpc/rpc.go:198:70: undefined: Mirror
go/src/github.com/etix/mirrorbits/rpc/rpc.go:228:50: undefined: Mirror
go/src/github.com/etix/mirrorbits/rpc/rpc.go:228:60: undefined: AddMirrorReply
go/src/github.com/etix/mirrorbits/rpc/rpc.go:279:53: undefined: Mirror
go/src/github.com/etix/mirrorbits/rpc/rpc.go:279:53: too many errors
theel0ja commented 5 years ago

Occurs also on Ubuntu 18.04.

# github.com/etix/mirrorbits/rpc
src/github.com/etix/mirrorbits/rpc/rpc.go:84:59: undefined: VersionReply
src/github.com/etix/mirrorbits/rpc/rpc.go:113:52: undefined: MatchRequest
src/github.com/etix/mirrorbits/rpc/rpc.go:113:68: undefined: MatchReply
src/github.com/etix/mirrorbits/rpc/rpc.go:137:53: undefined: ChangeStatusRequest
src/github.com/etix/mirrorbits/rpc/rpc.go:154:60: undefined: MirrorListReply
src/github.com/etix/mirrorbits/rpc/rpc.go:198:51: undefined: MirrorIDRequest
src/github.com/etix/mirrorbits/rpc/rpc.go:198:70: undefined: Mirror
src/github.com/etix/mirrorbits/rpc/rpc.go:228:50: undefined: Mirror
src/github.com/etix/mirrorbits/rpc/rpc.go:228:60: undefined: AddMirrorReply
src/github.com/etix/mirrorbits/rpc/rpc.go:279:53: undefined: Mirror
src/github.com/etix/mirrorbits/rpc/rpc.go:279:53: too many errors
# pkg-config --cflags zlib zlib zlib
pkg-config: exec: "pkg-config": executable file not found in $PATH
andibraeu commented 5 years ago

I do have the same messages on arm64. Is it because of arm?

ndowens commented 5 years ago

Not just arm, also getting that on x86_64

etix commented 5 years ago

GRPC was messing up with go get so I made a few changes in the master that should fix this. Can you please try again and report back?

andibraeu commented 5 years ago

thank you, that works on my machine