Skip to content

Commit

Permalink
fix: don't export callees when callers are exported (#2856)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Sep 27, 2024
1 parent bd87c59 commit 2b41d79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go-runtime/schema/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ func updateTransitiveVisibility(d schema.Decl, module *schema.Module) {
return
}

_ = schema.Visit(d, func(n schema.Node, next func() error) error { //nolint:errcheck
// exclude metadata children so we don't update callees to be exported if their callers are
_ = schema.VisitExcludingMetadataChildren(d, func(n schema.Node, next func() error) error { //nolint:errcheck
ref, ok := n.(*schema.Ref)
if !ok {
return next()
Expand Down

0 comments on commit 2b41d79

Please sign in to comment.