revert(windows): force the use of .exe

This reverts commit f00f5f9cf7.
Resolves #1387
This commit is contained in:
Jan De Dobbeleer 2021-12-08 12:51:23 +01:00 committed by Jan De Dobbeleer
parent 75eb09e6dc
commit 4294351e6f

View file

@ -270,9 +270,6 @@ func (env *environment) getRuntimeGOOS() string {
}
func (env *environment) runCommand(command string, args ...string) (string, error) {
if env.getRuntimeGOOS() == windowsPlatform && !strings.HasSuffix(command, ".exe") {
command += ".exe"
}
defer env.trace(time.Now(), "runCommand", append([]string{command}, args...)...)
if cmd, ok := env.cmdCache.get(command); ok {
command = cmd