You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running any of the Windows cake docker images, the PATH environment variable is not being set correctly and system paths have been stripped. This includes any references to system utilities and Powershell. This prevents the cake tool from being used within build automation (such as GitHub or GitLab) as it relies on Powershell being within the system PATH.
When execing into into a base mcr.microsoft.com/powershell:windowsservercore-ltsc2022 contaioner, the path is
Description
When running any of the Windows cake docker images, the PATH environment variable is not being set correctly and system paths have been stripped. This includes any references to system utilities and Powershell. This prevents the cake tool from being used within build automation (such as GitHub or GitLab) as it relies on Powershell being within the system PATH.
When execing into into a base
mcr.microsoft.com/powershell:windowsservercore-ltsc2022
contaioner, the path isWhen execing into a
cakebuild/cake:sdk-8.0-windowsservercore-ltsc2022
container, the path isIt appears this is a consequence of https://github.com/cake-build/docker/blob/main/src/Windows.Dockerfile#L11 as the variable references to ${PATH} in line 11 is empty.
Expected Behaviour
The system paths are included in addition to the cake paths in the system
PATH
variable.Actual Behaviour
The system paths are overridden by the cake paths in the system
PATH
variable.The text was updated successfully, but these errors were encountered: