From: Reinhard Tartler Date: Wed, 30 Sep 2026 20:12:12 +0000 Subject: Skip TestRmdirAfterGoList_Direct in sbuild environments The test runs 'go list -json example.com/p' on a directory that is not part of any module, which only resolves outside of a build chroot with a writable GOPATH. In the sbuild chroot this fails with 'cannot find package example.com/p in any of: /usr/lib/go-1.27/src/example.com/p (from GOROOT)'. The _Runner variant of this test is already skipped upstream because it was found to be flaky (golang/go#73736), but the _Direct variant is not. The failure is an artefact of the build environment rather than a bug in the code under test, so it is not forwarded upstream. Forwarded: not-needed Last-Update: 2026-09-30 --- internal/xtools-internal/gocommand/invoke_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/xtools-internal/gocommand/invoke_test.go b/internal/xtools-internal/gocommand/invoke_test.go index 11200b9..2bab7c2 100644 --- a/internal/xtools-internal/gocommand/invoke_test.go +++ b/internal/xtools-internal/gocommand/invoke_test.go @@ -74,6 +74,7 @@ func TestRmdirAfterGoList_Runner(t *testing.T) { // child process has naturally finished. This is to confirm the // hypothesis at https://github.com/golang/go/issues/73736#issuecomment-2885407104. func TestRmdirAfterGoList_Direct(t *testing.T) { + t.Skip("Debian: fails in sbuild because go list cannot find package example.com/p (no network, package not in GOROOT/GOPATH)") for _, delay := range []time.Duration{0, 30 * time.Second} { t.Run(delay.String(), func(t *testing.T) { testRmdirAfterGoList(t, func(ctx context.Context, dir string) {