From 19852e272ad8a73fe8cbdcb5ff1a7aed5da12f99 Mon Sep 17 00:00:00 2001 From: worstell Date: Fri, 21 Jun 2024 14:20:14 -0400 Subject: [PATCH] fix: transitive exports in schema extraction (#1851) --- go-runtime/compile/build.go | 1 + go-runtime/schema/extract.go | 1 + 2 files changed, 2 insertions(+) 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() })