Skip to content

x/tools/cmd/digraph: allpaths missing edges #74842

@rsc

Description

@rsc

Something is amiss in digraph allpaths.

% digraph allpaths BaseAgent LlmRequest <deps.topo 
BaseAgent BaseAgent
BaseAgent Telemetry
BaseTool LlmRequest
InvocationContext BaseAgent
LlmRequest BaseTool
Telemetry LlmRequest
% 

InvocationContext looks out of place here, since it is not reachable from BaseAgent in the output graph. But it turns out that it is:

% digraph somepath BaseAgent InvocationContext <deps.topo
BaseAgent InvocationContext
%
% go version -m `{which digraph}
/Users/rsc/bin/digraph: go1.25-devel_607adee5a6 Sun May 4 10:29:18 2025 -0400
	path	golang.org/x/tools/cmd/digraph
	mod	golang.org/x/tools	v0.35.0	h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
	build	-buildmode=exe
	build	-compiler=gc
	build	DefaultGODEBUG=decoratemappings=0,gotestjsonbuildtext=1,multipathtcp=0,randseednop=0,rsa1024min=0,tlsmlkem=0,x509rsacrt=0,x509usepolicies=0
	build	CGO_ENABLED=1
	build	CGO_CFLAGS=
	build	CGO_CPPFLAGS=
	build	CGO_CXXFLAGS=
	build	CGO_LDFLAGS=
	build	GOARCH=arm64
	build	GOOS=darwin
	build	GOARM64=v8.0
% 

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions