Skip to content

Commit

Permalink
fix: build module without verbs with a subpackage that has verbs (#2170)
Browse files Browse the repository at this point in the history
fixes #2148
  • Loading branch information
worstell authored Jul 25, 2024
1 parent cbc4118 commit 1cec75e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions go-runtime/compile/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/"))
}
Expand Down

0 comments on commit 1cec75e

Please sign in to comment.