From 4294351e6f7aeeef4771e60f0af1aeb07ab752f6 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 8 Dec 2021 12:51:23 +0100 Subject: [PATCH] revert(windows): force the use of .exe This reverts commit f00f5f9cf7da43a5c5f3c7ebd757b4293ac11f13. Resolves #1387 --- src/environment.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/environment.go b/src/environment.go index 8d828544..81480cee 100644 --- a/src/environment.go +++ b/src/environment.go @@ -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