Debian Codegraph @

debian/patches/0004-Skip-TestCalls-in-typeindex-in-sbuild-environments.patch

raw
1 From: Reinhard Tartler <[email protected]>
2 Date: Wed, 30 Sep 2026 20:12:22 +0000
3 Subject: Skip TestCalls in typeindex in sbuild environments
4
5 The test uses packages.Load to load a package named 'foo' that it has
6 just created in a temporary directory. In the sbuild chroot go list
7 cannot resolve it, producing 'cannot find package foo in any of:
8 /usr/lib/go-1.27/src/foo (from GOROOT)'.
9
10 This is a constraint of the offline build environment rather than a bug
11 in the code under test, so it is not forwarded upstream.
12
13 Forwarded: not-needed
14 Last-Update: 2026-09-30
15 ---
16 internal/xtools-internal/typesinternal/typeindex/typeindex_test.go | 1 +
17 1 file changed, 1 insertion(+)
18
19 diff --git a/internal/xtools-internal/typesinternal/typeindex/typeindex_test.go b/internal/xtools-internal/typesinternal/typeindex/typeindex_test.go
20 index 782dd17..fdf5df7 100644
21 --- a/internal/xtools-internal/typesinternal/typeindex/typeindex_test.go
22 +++ b/internal/xtools-internal/typesinternal/typeindex/typeindex_test.go
23 @@ -260,6 +260,7 @@ func (n Named[_]) _() { n.g() }`,
24 }
25
26 func TestCalls(t *testing.T) {
27 + t.Skip("Debian: fails in sbuild because packages.Load cannot find package foo (no network, package not resolvable in chroot)")
28 testenv.NeedsGoPackages(t)
29 const file = `-- go.mod --
30 module foo