Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(plugin): remove comment code

LinkinStars373b454728d8
diff --git a/internal/cli/build.go b/internal/cli/build.go
index cd01d491..ed7235e2 100644
--- a/internal/cli/build.go
+++ b/internal/cli/build.go
@@ -128,19 +128,10 @@ func createMainGoFile(b *buildingMaterial) (err error) {
}
var (
- //localPlugins []string
remotePlugins []string
)
for _, p := range b.plugins {
- //if len(p.Path) == 0 {
remotePlugins = append(remotePlugins, versionedModulePath(p.Name, p.Version))
- //} else {
- //localPluginDir := filepath.Base(p.Path)
- //localPlugins = append(localPlugins, localPluginDir)
- //if err := cp.Copy(p.Path, filepath.Join(b.tmpDir, localPluginDir)); err != nil {
- // return err
- //}
- //}
}
mainGoFile := &bytes.Buffer{}
@@ -150,7 +141,6 @@ func createMainGoFile(b *buildingMaterial) (err error) {
}
err = tmpl.Execute(mainGoFile, map[string]any{
"remote_plugins": remotePlugins,
- //"local_plugins": localPlugins,
})
if err != nil {
return err