dh-make-golang | Automatically creates Debian packaging for Go packages
kandi X-RAY | dh-make-golang Summary
kandi X-RAY | dh-make-golang Summary
All you need to specify is a Go package name. In your current working directory, a new directory will be created containing a git repository. Inside that repository, you’ll find the Go package’s source code plus the necessary Debian packaging files to build a Debian package. The packaging adheres to the pkg-go packaging guidelines and hence can be placed alongside the other team-maintained packages in pkg-go, hosted on Debian’s salsa.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dh-make-golang
dh-make-golang Key Features
dh-make-golang Examples and Code Snippets
Community Discussions
Trending Discussions on dh-make-golang
QUESTION
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)
ANSWER
Answered 2017-Mar-29 at 06:41Take a look at goxc - it can do this for you!
You simply need to add a .goxc.json
to the root of your directory, that looks like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dh-make-golang
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page