Skip to content

Commit

Permalink
Downgrade chocolatey to v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Feb 19, 2024
1 parent cdd6f77 commit 7e1ddbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/golang-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e1ddbe

Please sign in to comment.