On Sun, Apr 30, 2023 at 2:18 PM John Scott <jsc...@posteo.net> wrote: > > Package: dh-make-golang > Version: 0.6.0-2+b5 > Severity: normal > Control: block 1035318 by -1 > > It looks like dh-make-golang fails when the commits are signed, and this > makes me unable to package the rtltcp library: > > $ dh-make-golang make -type "library" github.com/bemasher/rtltcp > 2023/04/30 15:46:18 Starting "dh-make-golang v0.6.0 linux/amd64" > 2023/04/30 15:46:18 Downloading "github.com/bemasher/rtltcp/..." > 2023/04/30 15:46:21 Determining upstream version number > 2023/04/30 15:46:21 Could not create a tarball of the upstream source: get > package version from Git: parse last commit date: strconv.ParseInt: parsing > "gpg: Signature made Sun 30 Apr 2023 03:27:39 PM EDT\ngpg: > using RSA key 4AEE18F83AFDEB23\ngpg: Good signature from \"GitHub (web-flow > commit signing) <nore...@github.com>\" [marginal]\ngpg: nore...@github.com: > Verified 120 signatures in the past 2 years. Encrypted\n 0 > messages.\ngpg: Warning: you have yet to encrypt a message to this key!\ngpg: > WARNING: This key is not certified with sufficiently trusted > signatures!\ngpg: It is not certain that the signature belongs to > the owner.\n 5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23\n1682882859": > invalid syntax > > If this is not a trivial fix, if anyone knows of a workaround so I can > do my packaging, that would be nice. > > -- System Information: > Debian Release: 12.0 > APT prefers testing-debug > APT policy: (500, 'testing-debug'), (500, 'testing'), (2, > 'unstable-debug'), (2, 'unstable'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386, arm64 > > Kernel: Linux 6.1.0-7-amd64 (SMP w/2 CPU threads; PREEMPT) > Kernel taint flags: TAINT_USER, TAINT_FIRMWARE_WORKAROUND > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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.39.2-1.1 > ii git-buildpackage 0.9.30 > ii golang-any 2:1.19~1 > ii libc6 2.36-8 > ii pristine-tar 1.50 > > Versions of packages dh-make-golang recommends: > ii golang-golang-x-tools 1:0.5.0+ds-1 > ii msmtp-mta [mail-transport-agent] 1.8.23-1 > > dh-make-golang suggests no packages. > > -- no debconf information
Hi John, Thank you for your report, and I apologize for my late reply. I did some testing, and was initially unable to reproduce the bug you are seeing until I added "log.showSignature = true" to my global git config file. Please try running the command: git config --show-origin --show-scope --get-all log.showSignature and see if it outputs anything; for example: global file:/home/foka/.gitconfig true Such a setting would forcefully show signatures when running "git log", which dh-make-golang does in "git log --pretty=format:%ct -n1" to get a timestamp. It can be fixed in dh-make-golang by adding the --no-show-signature option to the git log call, which I'll be uploading in 0.7.0-1 in the not-too-distant future. Until a fix is uploaded, you may use the following command to remove the setting from your global git config, i.e. ~/.gitconfig: git config --global --unset log.showSignature and you shouldn't see that error again. Cheers, Anthony