Package: dh-make-golang
Version: 0.4.0-1+b6
Severity: normal
X-Debbugs-Cc: [email protected]
# Problem:
When dh-make-golang make is executed for library without no main, no external
module dependencies, it seems that dh-make-golang will fail.
I've found this issue against the following case:
$ dh-make-golang make github.com/0xax/notificator
# Actual result:
With dh-make-golang 0.4.0-1+b6 in unstable:
```
dh-make-golang make github.com/0xax/notificator
2021/08/21 01:21:07 Starting "dh-make-golang v0.4.0 linux/amd64"
2021/08/21 01:21:07 Downloading "github.com/0xax/notificator/..."
2021/08/21 01:21:10 Determining upstream version number
2021/08/21 01:21:10 Package version is "0.0~git20210731.c42e3d4"
unexpected directory layout:
import path: _/tmp/dh-make-
golang782373564/src/github.com/0xax/notificator
root: /tmp/dh-make-golang782373564/src
dir: /tmp/dh-make-golang782373564/src/github.com/0xax/notificator
expand root: /tmp/dh-make-golang782373564
expand dir: /tmp/dh-make-
golang782373564/src/github.com/0xax/notificator
separator: /
2021/08/21 01:21:10 Could not create a tarball of the upstream source: [go list
-f {{.ImportPath}} {{.Name}} github.com/0xax/notificator/...]: exit status 1
```
# Expected result:
dh-make-golang make github.com/0xax/notificator succeeds.
# Additional information
This error caused in make.go:findMains.
https://salsa.debian.org/go-team/packages/dh-make-golang/-/blob/debian/sid/make.go#L221-223
Maybe findDependendencies will also fail.
https://salsa.debian.org/go-team/packages/dh-make-golang/-/blob/debian/sid/make.go#L362-372
So, it is happy if this error is take cared.
-- System Information:
Debian Release: 11.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: sh4, powerpc, m68k
Kernel: Linux 5.10.0-8-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-make-golang depends on:
ii git 1:2.33.0-1
ii git-buildpackage 0.9.22
ii golang-any 2:1.15~1
ii libc6 2.31-16
ii pristine-tar 1.49
Versions of packages dh-make-golang recommends:
ii exim4-daemon-light [mail-transport-agent] 4.94.2-7
ii golang-golang-x-tools 1:0.1.0+ds-1+b5
dh-make-golang suggests no packages.