From 1cec75ebe29ce7ece49fea9281b05084f686deb3 Mon Sep 17 00:00:00 2001 From: worstell Date: Thu, 25 Jul 2024 11:23:04 -0700 Subject: [PATCH] fix: build module without verbs with a subpackage that has verbs (#2170) fixes #2148 --- go-runtime/compile/build.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/go-runtime/compile/build.go b/go-runtime/compile/build.go index 617226b71..4d0757970 100644 --- a/go-runtime/compile/build.go +++ b/go-runtime/compile/build.go @@ -442,9 +442,6 @@ var scaffoldFuncs = scaffolder.FuncMap{ }, "mainImports": func(ctx mainModuleContext) []string { imports := sets.NewSet[string]() - if len(ctx.Verbs) > 0 { - imports.Add(ctx.Name) - } for _, v := range ctx.Verbs { imports.Add(strings.TrimPrefix(v.MustImport, "ftl/")) }