Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve scoop Select-CurrentVersion error by locking to 0.4.2 #5093

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
peterzhuamazon marked this conversation as resolved.
Show resolved Hide resolved

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