packer: remove directory slices from structs

Since we'll only look in the plugin directory, and not from multiple
sources now, for installing/listing plugins, we can simplify the
structures which used to accept multiple directories so they only accept
one.
This commit is contained in:
Lucas Bajolet
2024-03-01 09:04:15 -05:00
committed by Lucas Bajolet
parent 664700d0c0
commit 4b00a81bf3
10 changed files with 150 additions and 275 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (c *PluginsRemoveCommand) RunContext(buildCtx context.Context, args []strin
}
opts := plugingetter.ListInstallationsOptions{
FromFolders: []string{c.Meta.CoreConfig.Components.PluginConfig.PluginDirectory},
PluginDirectory: c.Meta.CoreConfig.Components.PluginConfig.PluginDirectory,
BinaryInstallationOptions: plugingetter.BinaryInstallationOptions{
OS: runtime.GOOS,
ARCH: runtime.GOARCH,