Skip to content

Commit

Permalink
fix(serverless): fix serverless feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Jan 9, 2025
1 parent 867e223 commit 65932dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/serverless/serverlessdelete/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"path/filepath"
"strings"

"github.com/jzero-io/jzero-contrib/modx"
"github.com/jzero-io/jzero-contrib/templatex"
"github.com/rinchsan/gosimports"
"github.com/samber/lo"
Expand Down Expand Up @@ -71,6 +72,13 @@ func Run() error {
return err
}

for i := 0; i < len(remainingPlugins); i++ {
pluginGoMod, err := modx.GetGoMod(filepath.Join(wd, remainingPlugins[i].Path))
if err != nil {
return err
}
remainingPlugins[i].Module = pluginGoMod.Path
}
pluginsGoBytes, err := templatex.ParseTemplate(map[string]any{
"Plugins": remainingPlugins,
"Module": goMod.Path,
Expand Down

0 comments on commit 65932dc

Please sign in to comment.