Skip to content

cmd/doc: go doc synctest.Wait shows wrong package #79988

@rsc

Description

@rsc

go doc is preferring internal/synctest over testing/synctest when asked about synctest.Wait. It should only resort to internal packages if no non-internal ones can be found.

% go version
go version go1.27-devel_3ca82d4890 Fri Jun 12 10:58:22 2026 -0700 darwin/arm64
% go doc testing/synctest.Wait
package synctest // import "testing/synctest"

func Wait()
    Wait blocks until every goroutine within the current bubble, other than the
    current goroutine, is durably blocked.

    Wait must not be called from outside a bubble. Wait must not be called
    concurrently by multiple goroutines in the same bubble.

% go doc synctest.Wait
package synctest // import "internal/synctest"

func Wait()
% 

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.release-blocker

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions