Santiago Vila <[email protected]> writes: > dh_auto_build -O--builddirectory=_build -O--buildsystem=golang > cd _build && go install -trimpath -v -p 2 > github.com/go-webauthn/webauthn/metadata > github.com/go-webauthn/webauthn/metadata/providers/cached > github.com/go-webauthn/webauthn/metadata/providers/memory > github.com/go-webauthn/webauthn/protocol > github.com/go-webauthn/webauthn/protocol/webauthncbor > github.com/go-webauthn/webauthn/protocol/webauthncose > github.com/go-webauthn/webauthn/testing/mocks > github.com/go-webauthn/webauthn/webauthn > src/github.com/go-webauthn/webauthn/testing/mocks/metadata.go:18:2: cannot > find package "go.uber.org/mock/gomock" in any of:
There are two ways to resolve that: 1) add the required build dependency (0001-B-D-D-on-golang-go.uber-mock-dev-Closes-1126600.patch) or 2) exclude the testing/ sub-directory (0001-Exclude-testing-dir-Closes-1126600.patch). I've confirmed that either patch solves this bug. Maytham/Mathias, do you have a preference for which solution to use? Or something else? I'm inclined to go with the first, since it is the more generic approach but it costs another B-D/D. /Simon
From ce6b8d083db765849c2346209dbb6c39f478aee7 Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[email protected]> Date: Thu, 5 Feb 2026 22:01:46 +0100 Subject: [PATCH] B-D/D on golang-go.uber-mock-dev (Closes: ##1126600) --- debian/control | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 1c5c64f..93fcec5 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,7 @@ Build-Depends: golang-github-google-go-tpm-dev, golang-github-google-uuid-dev, golang-github-stretchr-testify-dev <!nocheck>, - golang-go.uber-mock-dev <!nocheck> + golang-go.uber-mock-dev, Testsuite: autopkgtest-pkg-go Standards-Version: 4.7.3 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-go-webauthn-webauthn @@ -31,6 +31,7 @@ Depends: golang-github-golang-jwt-jwt-v5-dev, golang-github-google-go-tpm-dev, golang-github-google-uuid-dev, + golang-go.uber-mock-dev, ${misc:Depends}, Description: webauthn/FIDO2 library in golang (library) This library is meant to handle Web Authentication for Go apps that wish -- 2.52.0
From da1f80b0f5c916c9cccee7b3e76dac1a9dbaab22 Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[email protected]> Date: Thu, 5 Feb 2026 22:06:53 +0100 Subject: [PATCH] Exclude testing/ dir (Closes: ##1126600) --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index 87b8d4e..09a6809 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,6 @@ #!/usr/bin/make -f +export DH_GOLANG_EXCLUDES := testing + %: dh $@ --builddirectory=_build --buildsystem=golang -- 2.52.0
signature.asc
Description: PGP signature

