Skip to content

Commit

Permalink
Fix buf graph for unattached nodes (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Jun 29, 2023
1 parent ae1b17c commit 84d6e98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions private/bufpkg/bufgraph/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (b *builder) buildForModule(
workspace bufmodule.Workspace,
graph *dag.Graph[Node],
) ([]bufanalysis.FileAnnotation, error) {
graph.AddNode(node)
image, fileAnnotations, err := b.imageBuilder.Build(
ctx,
module,
Expand Down
1 change: 0 additions & 1 deletion private/pkg/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ func (g *Graph[Key]) DOTString(keyToString func(Key) string) (string, error) {
// We also want to pick up any nodes that do not have edges, and display them.
if err := g.WalkNodes(
func(key Key, inboundEdges []Key, outboundEdges []Key) error {
//
if _, ok := keyToIndex[key]; ok {
return nil
}
Expand Down

0 comments on commit 84d6e98

Please sign in to comment.