Skip to content

Commit

Permalink
Set default file extension for binary removal on Windows (#11627)
Browse files Browse the repository at this point in the history
Related to #11625
  • Loading branch information
Wilken Rivera authored Mar 4, 2022
1 parent 8e1e032 commit 1c398a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command/plugins_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1c398a7

Please sign in to comment.