Skip to content

Commit

Permalink
fix: Unable to build module without verbs with a subpackage that has …
Browse files Browse the repository at this point in the history
…verbs

fixes #2148
  • Loading branch information
worstell committed Jul 25, 2024
1 parent 9201184 commit 4b7a99b
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 4b7a99b

Please sign in to comment.