mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
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:
committed by
Lucas Bajolet
parent
664700d0c0
commit
4b00a81bf3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user