Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automatically creates Debian packaging for Go packages

License

NotificationsYou must be signed in to change notification settings

Debian/dh-make-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Test

dh-make-golang is a tool to automatically create Debian packaging for Gopackages. Its goal is to automate away as much of the work as possible whencreating a Debian package for a Go library package or Go program.

Overview

All you need to specify is a Go package name. In your current workingdirectory, a new directory will be created containing a git repository. Insidethat repository, you’ll find the Go package’s source code plus the necessaryDebian packaging files to build a Debian package. The packaging adheres to thepkg-go packaging guidelinesand hence can be placed alongside the otherteam-maintained packages inpkg-go, hosted on Debian’ssalsa.

Usage/example

For an introductory example, seethis annotated demonstration of how to usedh-make-golang.

dh-make-golang’s usage of the internet

dh-make-golang makes heavy use of online resources to improve the resultingpackage. In no particular order and depending on where your package is hosted,dh-make-golang may query:

  • By virtue of usinggo get, the specified Go package and all of itsdependencies will be downloaded. This step can quickly cause dozens ofmegabytes to be transferred, so be careful if you are on a metered internetconnection.
  • The output offilter-packages.sh,hosted onhttps://people.debian.org/~stapelberg/dh-make-golang/. This is usedto figure out whether dependencies are already packaged in Debian, andwhether you are about to duplicate somebody else’s work.
  • GitHub’s API, to get the license, repository creator, description and READMEfor Go packages hosted on GitHub.

[8]ページ先頭

©2009-2025 Movatter.jp