[Pkg-mongodb-maintainers] Bug#890059: [PATCH] Switch to XS-Go-Import-Path

Michael Stapelberg stapelberg at debian.org
Sat Feb 10 16:28:26 UTC 2018

Package: mongo-tools
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.


-- 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 mongo-tools depends on:
ii  libc6        2.26-4
ii  libsasl2-2   2.1.27~101-g0780600+dfsg-3
ii  libssl1.0.2  1.0.2l-2

mongo-tools recommends no packages.

mongo-tools suggests no packages.
-------------- next part --------------
>From 124f15df1261101c5ef31f0f7d63e182f05c76bc Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <stapelberg at debian.org>
Date: Fri, 9 Feb 2018 17:14:30 +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 6699507..f62bbda 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,7 @@ Standards-Version: 3.9.8
 Homepage: https://github.com/mongodb/mongo-tools
 Vcs-Git: https://anonscm.debian.org/git/pkg-mongodb/mongo-tools.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-mongodb/mongo-tools.git
+XS-Go-Import-Path: github.com/mongodb/mongo-tools
 Package: mongo-tools
 Architecture: any
diff --git a/debian/rules b/debian/rules
index 74c67b5..d3bf0b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,6 @@
 # output every command that modifies files on the build system.
 #export DH_VERBOSE = 1
-export DH_GOPKG := github.com/mongodb/mongo-tools
 TOOLS = bsondump mongodump mongoexport mongofiles \
         mongoimport mongooplog mongorestore mongostat mongotop

More information about the Pkg-mongodb-maintainers mailing list