commit
5bd97b39a0321f279f521ee6c8c043778cb3d7d8
Author: Sergio Cazzolato <sergio.cazzolato@canonical.com>
Date: Tue Aug 23 12:01:00 2022 -0300
tests: fix sbuild test on debian sid (#12043)
* Fix sbuild test on debian sid
The test was failing because of 2 problems:
1. not enough space in the disk to run the test
2. it was failing to find package "github.com/canonical/go-tpm2" in the
file
src/github.com/snapcore/snapd/tests/nested/manual/core20-da-lockout/getdalockout.go
The solution for the second point is to add the dummy file so debian
does not pick it up when building
* tests: rename getdalockout_dummy.go->getdalockout_nosecboot.go
Co-authored-by: Michael Vogt <mvo@ubuntu.com>
Gbp-Pq: Name 0015-fix-build-
5bd97b39a03.patch
- debian-11-64:
workers: 6
- debian-sid-64:
+ storage: 12G
workers: 6
- fedora-35-64:
+//go:build !nosecboot
+// +build !nosecboot
+
package main
import (
--- /dev/null
+//go:build nosecboot
+// +build nosecboot
+
+// Note: This file is needed to ensure that debian does not pick it up when building,
+// otherwise it produces the error: cannot find package "github.com/canonical/go-tpm2"
+
+package main
+
+func main() {
+}