Skip to content

Commit

Permalink
Resolve scoop Select-CurrentVersion error by locking to 0.4.2 (#5093)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Oct 11, 2024
1 parent 21a5951 commit f7ee643
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/ci/config/windows-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# Install Scoop as Administrator User here
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
# Scoop version >= 0.5.0 has error with Select-CurrentVersion function
# They have not fix the issue and will error out on Windows ltsc2019
# https://github.com/ScoopInstaller/Scoop/issues/6180
# A temp solution is to hardcode the scoop version to 0.4.2
# iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
iex "& {$(irm https://raw.githubusercontent.com/peterzhuamazon/scoop-Install/refs/heads/stable/install.ps1)} -RunAsAdmin"

# Disable "current" alias directory as it is not preserved after AMI creation
# Use static path in environment variable
Expand Down

0 comments on commit f7ee643

Please sign in to comment.