dh-golang - debhelper add-on for packaging software written in Go (golang)

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Main amd64
Package name dh-golang
Package version 1.12ubuntu1
Package architecture all
Package type deb
Installed size 32 B
Download size 8.60 KB
Official Mirror archive.ubuntu.com
dh-golang provides a debhelper sequence addon named 'golang', a buildsystem
module named 'golang' and a command called dh_golang.
The golang debhelper buildsystem is designed to make packaging programs
written in Go very simple.


Package Version Architecture Repository
dh-golang_1.12ubuntu1_all.deb 1.12ubuntu1 all Ubuntu Main
dh-golang - - -


Name Value
debhelper -
dpkg >= 1.16.2
libdpkg-perl -
perl -


Type URL
Binary Package dh-golang_1.12ubuntu1_all.deb
Source Package dh-golang

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install dh-golang deb package:
    # sudo apt-get install dh-golang




2016-03-31 - Michael Hudson-Doyle <michael.hudson@canonical.com>
dh-golang (1.12ubuntu1) xenial; urgency=medium
* Follow /usr/bin/go symlink when computing Built-Using. (LP: #1564124)
2015-08-10 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.12) unstable; urgency=medium
[ Hilko Bengen ]
* Make dh-golang work with older dpkg versions (Closes: #794956)
2015-08-07 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.11) unstable; urgency=medium
* Only call go generate if DH_GOLANG_GO_GENERATE == 1 (Closes: #794815)
2015-08-06 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.10) unstable; urgency=medium
* If DH_GOPKG is not set in debian/rules, use XS-Go-Import-Path from
debian/control. If this works out well, this will become the encouraged
mechanism. The advantage is that it is easier to parse this field for
other automation that deals with Go packaging.
2015-08-03 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.9) unstable; urgency=medium
* Also install .{c,h,proto,s} files by default.
2015-07-26 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.8) unstable; urgency=medium
* Correctly parse Build-Depends when they contain an OR.
* Relicense under GPL-2+ due to having copied a large chunk of GPL-2+ code
into dh_golang(1).
2015-07-25 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.7) unstable; urgency=medium
* Call go generate (introduced with Go 1.4) when building packages.
* Bump Standards-Version to 3.9.6 (no changes necessary)
2014-07-29 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.6) unstable; urgency=low
[ Michael Stapelberg ]
* In debian/rules, export DH_GOLANG_BUILDPKG to overwrite "${DH_GOPKG}/..."
in the go install and go test commands. This can be used to avoid
recursing into subpackages or to specify just one specific part of the
package that should be built and installed.
* In debian/rules, export DH_GOLANG_EXCLUDES (containing a space-separated
list of perl regular expressions) to filter targets, e.g.:
export DH_GOLANG_EXCLUDES := github.com/coreos/etcd/third_party
(Closes: #721496)
[ Alessandro Ghedini ]
* Enable debian/control comment stripping (Closes: #734785)
2013-12-12 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.5) unstable; urgency=low
* Fix a bug introduce in 1.4 which lead to .go files not being installed
without DH_GOLANG_INSTALL_ALL=1 (Closes: #731991)
2013-12-02 - Michael Stapelberg <stapelberg@debian.org>
dh-golang (1.4) unstable; urgency=low
* in debian/rules, export DH_GOLANG_INSTALL_ALL=1 to install all files into
the builddir, not just .go files. This may be necessary to include golden
files for testcases, but then you need to manually delete extra LICENSE
files and such.

See Also

Package Description
dh-make_2.201604_all.deb tool that converts source archives into Debian package source
dh-php_0.10_all.deb debhelper add-on to handle PHP PECL extensions
dh-python_2.20151103ubuntu1_all.deb Debian helper tools for packaging Python libraries and applications
dh-strip-nondeterminism_0.015-1_all.deb debhelper add-on to strip non-determinism from files
dh-translations_129_all.deb debhelper extension for translation support
dict-foldoc_20150318-1_all.deb FOLDOC dictionary database
dict-gcide_0.48.1_all.deb Comprehensive English Dictionary
dict-jargon_4.4.7-2ubuntu1_all.deb dict package for The Jargon Lexicon
dict-moby-thesaurus_1.0-6.3~fakesync1_all.deb Largest and most comprehensive thesaurus
dict-vera_1.22-1_all.deb Dictionary of computer related acronyms -- dict format
dict_1.12.1+dfsg-3_amd64.deb dictionary client
dictd_1.12.1+dfsg-3_amd64.deb dictionary server
dictionaries-common-dev_1.26.3_all.deb spelling dictionaries - developer files
dictionaries-common_1.26.3_all.deb spelling dictionaries - common utilities
dictzip_1.12.1+dfsg-3_amd64.deb compression utility for dictionary databases