From b11b61d04fdd9f17cc2108b9c95c188ea7ce61b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 18 Mar 2021 14:26:11 +0200 Subject: [PATCH] windows: Don't manually add c:\Program Files (x86)\GnuWin32\bin to the path The GnuWin32 tools installed by Chocolatey reside in C:\GnuWin, and are added automatically to the path. The CMake tools aren't added automatically to the path though, so that entry still is useful. (However, the Visual Studio installation also brings along a different version of CMake that ends up found if the one we installed via Chocolatey isn't available.) --- containers/agent-windows-vs2019/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/agent-windows-vs2019/Dockerfile b/containers/agent-windows-vs2019/Dockerfile index 8ecf098..d5a472e 100644 --- a/containers/agent-windows-vs2019/Dockerfile +++ b/containers/agent-windows-vs2019/Dockerfile @@ -54,7 +54,7 @@ ENV PYTHONIOENCODING=UTF-8 # update the path variable RUN powershell -NoProfile -InputFormat None -Command ` - $path = $env:path + ';c:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin'; ` + $path = $env:path + ';C:\Program Files\CMake\bin'; ` Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path # use this folder to store the worksapce'