refactor(plugin): remove comment code

This commit is contained in:
LinkinStars
2023-02-21 17:32:52 +08:00
parent b229d12bb4
commit 373b454728
-10
View File
@@ -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