snap 2.47.1 build issue

Bug #1903452 reported by Rui Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Undecided
Unassigned

Bug Description

:wave:, trying to build the latest release, but run into some issue, here is the error log:

```
==> go build -trimpath -o /usr/local/Cellar/snap/2.47.1/bin/snap ./cmd/snap
# github.com/snapcore/snapd/vendor/github.com/canonical/go-tpm2
vendor/github.com/canonical/go-tpm2/tpm.go:485:16: undefined: OpenTPMDevice
# github.com/snapcore/snapd/bootloader/efi
bootloader/efi/efi.go:56:17: undefined: osutil.LoadMountInfo
# github.com/snapcore/snapd/osutil/disks
osutil/disks/disks.go:173:17: undefined: osutil.LoadMountInfo
```

full build log, https://github.com/Homebrew/homebrew-core/runs/1349956834
relates to https://github.com/Homebrew/homebrew-core/pull/64066

Revision history for this message
Graham Morrison (morrisong) wrote :

Thanks for filing this. I've switched the assigned project to snapcraft because this snap homebrew formula is used by Snapcraft on macOS.

affects: snappy → snapcraft
Revision history for this message
Rui Chen (chenrui333) wrote :

thanks, it caused the two upgrade failures in a row:
2.47.1, https://github.com/Homebrew/homebrew-core/pull/64066
2.48, https://github.com/Homebrew/homebrew-core/pull/65236

Let me know if you need more info from my side.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Seems something like this is needed now:
https://github.com/snapcore/snapd/runs/1445934332#step:6:2

      go build -tags nosecboot -o /tmp/snp github.com/snapcore/snapd/cmd/snap

This however is still a snapd issue.

affects: snapcraft → snapd
Changed in snapd:
status: New → Triaged
Revision history for this message
Rui Chen (chenrui333) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.