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
In #56 we added support for the ? modifier in RUN instructions. However, from a report in microsoft/vscode-docker#952 we can see that PowerShell (unsurprisingly) works quite different than Bash (and presumably other shells in the *nix world).
Hence, we should instead skip the validation of variable substitutions if they are found within a RUN instruction.
$ dockerfile-utils lint Dockerfile.1.1
Line: 42
Remove-Item -Force -Recurse \"${Env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\"; `
^
Error: failed to process "${Env:ProgramFiles(x86)}": unsupported modifier (P) in substitution
Line: 43
Remove-Item -Force -Recurse ${Env:TEMP}\*; `
^
Error: failed to process "${Env:TEMP}": unsupported modifier (T) in substitution
Line: 44
Remove-Item -Force -Recurse \"${Env:ProgramData}\Package Cache\"
^
Error: failed to process "${Env:ProgramData}": unsupported modifier (P) in substitution
In #56 we added support for the
?
modifier inRUN
instructions. However, from a report in microsoft/vscode-docker#952 we can see that PowerShell (unsurprisingly) works quite different than Bash (and presumably other shells in the *nix world).Hence, we should instead skip the validation of variable substitutions if they are found within a
RUN
instruction.The text was updated successfully, but these errors were encountered: