Set default file extension for binary removal on Windows (#11627)

Related to #11625
pull/11629/head v1.8.0
Wilken Rivera 4 years ago committed by GitHub
parent 8e1e0329ad
commit 1c398a73b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,6 +58,10 @@ func (c *PluginsRemoveCommand) RunContext(buildCtx context.Context, args []strin
},
}
if runtime.GOOS == "windows" && opts.Ext == "" {
opts.BinaryInstallationOptions.Ext = ".exe"
}
plugin, diags := addrs.ParsePluginSourceString(args[0])
if diags.HasErrors() {
c.Ui.Error(diags.Error())

Loading…
Cancel
Save