[pkg-go] Bug#890056: [PATCH] Switch to XS-Go-Import-Path

Michael Stapelberg stapelberg at debian.org
Sat Feb 10 16:20:24 UTC 2018


Package: gitlab-workhorse
Severity: wishlist
Tags: patch

Using the XS-Go-Import-Path field in debian/control is preferable over using
DH_GOPKG in debian/rules, because the former shows up in a machine-readable way
in Sources files, and can hence be easily picked up by tooling.

Please apply the attached patch and upload a new version to the archive.

Thanks!

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel, arm64

Kernel: Linux 4.13.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gitlab-workhorse depends on:
ii  libc6  2.26-4

gitlab-workhorse recommends no packages.

gitlab-workhorse suggests no packages.
-------------- next part --------------
>From 7b7b4468ff31ca43150140f157396974dee6c664 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <stapelberg at debian.org>
Date: Sat, 10 Feb 2018 11:48:54 +0100
Subject: [PATCH 1/2] Switch to XS-Go-Import-Path

---
 debian/control | 1 +
 debian/rules   | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b6b01b5..e4033d2 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Standards-Version: 3.9.8
 Homepage: https://gitlab.com/gitlab-org/gitlab-workhorse/
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/gitlab-workhorse.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/gitlab-workhorse.git
+XS-Go-Import-Path: gitlab.com/gitlab-org/gitlab-workhorse
 
 Package: gitlab-workhorse
 Architecture: any
diff --git a/debian/rules b/debian/rules
index aba9112..f999369 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,5 @@
 #!/usr/bin/make -f
 
-export DH_GOPKG = gitlab.com/gitlab-org/gitlab-workhorse
 #export DH_GOLANG_INSTALL_ALL := 1
 export DH_GOLANG_INSTALL_EXTRA = testdata
 export DH_GOLANG_EXCLUDES := support
-- 
2.15.1



More information about the Pkg-go-maintainers mailing list