#1146230 snapd: FTBFS: Fails to build with golang-1.27

Package:
src:snapd
Source:
src:snapd
Submitter:
Dr. Tobias Quathamer
Date:
2026-09-14 15:33:02 UTC
Severity:
normal
Tags:
#1146230#5
Date:
2026-08-30 16:29:53 UTC
From:
To:
Dear maintainer,

to prepare the switch of the default golang version in unstable,
I've asked Santiago Vila to rebuild all packages which depend
on golang with Go 1.27. This package failed to build, but it
could be built successfully with Go 1.26.

The full build log is available here:

https://people.debian.org/~toddy/ftbfs-golang-1.27/

I'm filing this bug with severity important for now. Once the
default golang compiler has been switched in unstable, this
bug becomes release-critical. When that happens, I'll upgrade
the severity to serious.

Regards,
Tobias

#1146230#12
Date:
2026-09-14 15:31:57 UTC
From:
To:
Please consider this backport of Canonical's already-merged
tests: fix json error assertions for Go 1.27

https://github.com/canonical/snapd/commit/d9bd57060dc92080989432219fabfae4726255f9
https://github.com/canonical/snapd/pull/17472

Verified with sbuild on unstable amd64, golang-1.27 1.27.1-2,
tests enabled, GOEXPERIMENT/GOFLAGS/GODEBUG unset.

The patch only relaxes JSON error assertions in six test files so
they match both Go 1.26 and Go 1.27 messages.