Public bug reported: We see this kind of error in recent runs of snapd tests when using bionic updating gccgo 4:8.2.0-1ubuntu2.1 and current dh-golang 1.34.
Can be run from snapd master checkout with: spread -v -debug google:ubuntu-18.04-64:tests/unit/gccgo with the proper configuration. Error: ... dh_makeshlibs -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build dh_shlibdeps -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build debian/rules override_dh_installdeb make[1]: Entering directory '/home/gopath/src/github.com/snapcore/snapd' dh_apparmor --profile-name=usr.lib.snapd.snap-confine.real -psnapd dh_installdeb make[1]: Leaving directory '/home/gopath/src/github.com/snapcore/snapd' dh_golang -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build template: main:2:14: executing "main" at <index (or .GoFiles ....>: error calling index: index out of range: 0 dh_golang: go list -f '\ {{ .Dir }}/{{ index (or .GoFiles .CgoFiles .TestGoFiles .XTestGoFiles .IgnoredGoFiles) 0 }}' returned exit code 1 debian/rules:103: recipe for target 'binary' failed make: *** [binary] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 ----- These were passing until today. Seems related/similar to https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=907263 which mentions dh-golang 1.35 having a fix. ** Affects: dh-golang (Ubuntu) Importance: Undecided Status: New ** Affects: gcc-8 (Ubuntu) Importance: Undecided Status: New ** Tags: regression-update ** Also affects: dh-golang (Ubuntu) Importance: Undecided Status: New ** Description changed: We see this kind of error in recent runs of snapd tests when using - bionic updating gccgo and current dh-golang 1.34. + bionic updating gccgo 4:8.2.0-1ubuntu2.1 and current dh-golang 1.34. Can be run from snapd master checkout with: spread -v -debug google:ubuntu-18.04-64:tests/unit/gccgo with the proper configuration. Error: ... - dh_makeshlibs -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build - dh_shlibdeps -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build - debian/rules override_dh_installdeb + dh_makeshlibs -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build + dh_shlibdeps -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build + debian/rules override_dh_installdeb make[1]: Entering directory '/home/gopath/src/github.com/snapcore/snapd' dh_apparmor --profile-name=usr.lib.snapd.snap-confine.real -psnapd dh_installdeb make[1]: Leaving directory '/home/gopath/src/github.com/snapcore/snapd' - dh_golang -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build + dh_golang -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build template: main:2:14: executing "main" at <index (or .GoFiles ....>: error calling index: index out of range: 0 dh_golang: go list -f '\ {{ .Dir }}/{{ index (or .GoFiles .CgoFiles .TestGoFiles .XTestGoFiles .IgnoredGoFiles) 0 }}' returned exit code 1 debian/rules:103: recipe for target 'binary' failed make: *** [binary] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 ----- These were passing until today. Seems related/similar to https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=907263 which mentions dh-golang 1.35 having a fix. ** Summary changed: - new gccgo version update () is triggering dh-golang bug + new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang <1.35 bug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1794936 Title: new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang <1.35 bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dh-golang/+bug/1794936/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs