diff --git a/command/plugins_install.go b/command/plugins_install.go index 2e14fcca2..f9fd02447 100644 --- a/command/plugins_install.go +++ b/command/plugins_install.go @@ -86,6 +86,10 @@ func (c *PluginsInstallCommand) RunContext(buildCtx context.Context, args []stri pluginRequirement.VersionConstraints = constraints } + if runtime.GOOS == "windows" && opts.Ext == "" { + opts.BinaryInstallationOptions.Ext = ".exe" + } + getters := []plugingetter.Getter{ &github.Getter{ // In the past some terraform plugins downloads were blocked from a