diff --git a/go-runtime/compile/build.go b/go-runtime/compile/build.go index 768756a0cf..68bd35ef4b 100644 --- a/go-runtime/compile/build.go +++ b/go-runtime/compile/build.go @@ -701,6 +701,7 @@ func updateTransitiveVisibility(d schema.Decl, module *schema.Module) { t.Export = true case *schema.Database, *schema.Config, *schema.FSM, *schema.Secret, *schema.Subscription: } + updateTransitiveVisibility(decl, module) } return next() }) diff --git a/go-runtime/schema/extract.go b/go-runtime/schema/extract.go index d842f6c640..bb75038e96 100644 --- a/go-runtime/schema/extract.go +++ b/go-runtime/schema/extract.go @@ -174,6 +174,7 @@ func updateTransitiveVisibility(d schema.Decl, module *schema.Module) { t.Export = true case *schema.Database, *schema.Config, *schema.FSM, *schema.Secret, *schema.Subscription: } + updateTransitiveVisibility(decl, module) } return next() })