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

#1147309#5
Date:
2026-09-10 18:23:53 UTC
From:
To:
Dear Maintainer,

I independently reproduced this failure when building the unchanged Debian
snapd 2.76.3-2 source package in an unstable amd64 sbuild environment with
golang-1.27-go 1.27.1-2.

Upstream there is already a fix for the JSON error assertions involved:
https://github.com/canonical/snapd/pull/17472
Commit: d9bd57060dc92080989432219fabfae4726255f9
Title: tests: fix json error assertions for Go 1.27

The commit updates all test files involved in the failures I observed. Could
this fix be backported to the Debian package?

I have not yet validated a Debian build using that exact upstream commit, but
would be happy to prepare and test a backport.

Regards,
Deepam

#1147309#10
Date:
2026-09-10 18:35:32 UTC
From:
To:
Hi,

Sorry, I accidentally submitted #1147309 as a new report instead  of a
follow-up to #1146230.

Could you please merge this duplicate with #1146230? It includes a link
to the upstream fix in Canonical’s snapd PR #17472.

Regards,
Deepam