Package: dh-make-golang
Version: 0.5.0-1
Severity: important

I am attempting to package up NNCP, and for that I need a 
go.cypherpunks.ru/balloon .

Running dh-make-golang make -type library -allow_unknown_hoster 
go.cypherpunks.ru/balloon , I see:

2021/09/05 01:16:27 Running "git fetch go.cypherpunks"
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 95 (delta 0), reused 3 (delta 0), pack-reused 92
Unpacking objects: 100% (95/95), 27.75 KiB | 163.00 KiB/s, done.
>From https://git.cypherpunks.ru/balloon
 * [new branch]      master     -> go.cypherpunks/master
 * [new tag]         v1.0.0     -> v1.0.0
 * [new tag]         v1.1.0     -> v1.1.0
 * [new tag]         v1.1.1     -> v1.1.1
tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gbp:error: Couldn't unpack 
'/home/jgoerzen/work/nncp-debian/golang-lukechampine-blake3/golang-go.cypherpunks-balloon_1.1.1.orig.tar.gz':
 it exited with 2
2021/09/05 01:16:28 Could not create git repository: import-orig: exit status 1

And indeed, there's a reason it couldn't unpack that:

-rw-r--r-- 1 jgoerzen jgoerzen 0 Sep  5 01:16 
golang-go.cypherpunks-balloon_1.1.1.orig.tar.gz

Looking in the code, the hoster isn't going to have a tarball.  But in make.go, 
there's this:

        if u.isRelease {
                if !u.hasGodeps { // No need to repack; fetch pristine tarball
                        u.compression = "gz"
                        if err := u.tarballFromHoster(); err != nil {
                                if err.Error() == "unsupported hoster" {
                                        log.Printf("INFO: Hoster does not 
provide release tarball\n")
                                } else {
                                        return fmt.Errorf("tarball from hoster: 
%w", err)
                                }
                        }
                        return nil

Basically it returns in the same way whether or not tarballFromHoster worked.

If I remove that "return nil", it works for this case (though of course may be 
broken for others).

If you wish to test with this package, you will need the CA certificate from 
http://www.ca.cypherpunks.ru/ installed per the instructions in 
/usr/share/doc/ca-certificates.

Thanks,

John


-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-make-golang depends on:
ii  git               1:2.30.2-1
ii  git-buildpackage  0.9.22
ii  golang-any        2:1.15~1
ii  libc6             2.31-13
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.

-- no debconf information

Reply via email to