I've been looking into building a go project into a debian package.
I've looked into dh-make-golang and I have a nice and shiny debian
folder set up in my repository. When I try to use gbp buildpackage --git-pbuilder
though it errors out due to all of my dependencies not being found. It seems that dh-make-golang
ignores the vendor
folder when it copies everything from my project's git repository, and I use govendor
so all of my dependencies are in there.
How can I resolve this dependency issue and build the project as a .deb
package properly? For reference, the error I am getting is:
src/github.com/project/project/project.go:15:2: cannot find package "google.golang.org/grpc/grpclog" in any of:
/usr/lib/go-1.7/src/google.golang.org/grpc/grpclog (from $GOROOT)
/tmp/project/obj-x86_64-linux-gnu/src/google.golang.org/grpc/grpclog (from $GOPATH)
Issue was a bug in dh-make-golang
regarding importing vendor dependencies. It was just fixed today.