Public bug reported: Go's test suite shows a problem:
$ go test archive/zip --- FAIL: TestReader (0.06s) --- FAIL: TestReader/test.zip (0.00s) reader_test.go:675: gophercolor16x16.png: len=785, want 664 --- FAIL: TestReader/test-trailing-junk.zip (0.00s) reader_test.go:675: gophercolor16x16.png: len=785, want 664 FAIL FAIL archive/zip 26.182s FAIL The source for the test shows that it is comparing the size of the file /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png to the size of the same file inside the archive test.zip in the same directory: $ ls -l /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png -rw-r--r-- 1 root root 664 Apr 13 14:52 /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png $ unzip -v /usr/share/go-1.18/src/archive/zip/testdata/test.zip ... 785 Stored 785 0% 2010-09-04 22:52 54d531fe gophercolor16x16.png The same file in the upstream tarball, http://archive.ubuntu.com/ubuntu/pool/main/g/golang-1.18/golang-1.18_1.18.1.orig.tar.gz has the expected size: $ tar -tvf golang-1.18_1.18.1.orig.tar.gz | grep gophercolor -rw-r--r-- root/root 785 2022-04-12 08:42 go/src/archive/zip/testdata/gophercolor16x16.png The file appears to be installed correctly per dpkg: $ grep gophercolor /var/lib/dpkg/info/golang-1.18-src.md5sums 75631d6d103ce71fe8d58aff2386c4a4 usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png $ md5sum /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png 75631d6d103ce71fe8d58aff2386c4a4 /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png Where in the packaging pipeline did the file become smaller? ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: golang-1.18-src 1.18.1-1ubuntu1 ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30 Uname: Linux 5.15.0-27-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Mon May 9 14:29:13 2022 Dependencies: InstallationDate: Installed on 2020-10-17 (569 days ago) InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: golang-1.18 UpgradeStatus: Upgraded to jammy on 2022-05-01 (8 days ago) ** Affects: golang-1.18 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1972735 Title: "go test archive/zip" fails, gophercolor16x16.png wrong size To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/golang-1.18/+bug/1972735/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs