diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index c6c7606cce6..db53c62a6e9 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -39,7 +39,13 @@ jobs: - run: mv ${{ env.downloadPath }}/wintun/bin/amd64/wintun.dll 'C:\Windows\System32\' - - run: choco install -y sysinternals --ignore-checksums --version 2024.2.13 + - name: Download Chocolatey v2.2.0 installer + run: curl -L https://community.chocolatey.org/api/v2/package/chocolatey/2.2.0 -o ${{ env.downloadPath}}\chocolatey.2.2.0.nupkg + + - name: Install Chocolatey v2.2.0 + run: powershell.exe -NoLogo -ExecutionPolicy Bypass -Command "& 'C:\ProgramData\chocolatey\bin\choco.exe' install chocolatey --version '2.2.0' --source '${{ env.downloadPath }}' --allow-downgrade" + + - run: choco install -y sysinternals --ignore-checksums - run: choco install -y mingw - run: PsExec64 -s -w ${{ github.workspace }} C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe env -w GOMODCACHE=C:\Users\runneradmin\go\pkg\mod