Skip to content

Commit

Permalink
appveyor: fix Go install (#3)
Browse files Browse the repository at this point in the history
https://www.appveyor.com/docs/windows-images-software/#golang lists

> Go 1.22.1 x64 (C:\go - default in PATH)

But the image or docs are buggy, C:\go is a symlink of C:\go121 and Go
1.22 does not seem to exist.

We switch to choco to install the desired Go version. The benefit is
that choco receives new updates faster too and has more granular
version control.
  • Loading branch information
benma authored and baizon committed Aug 26, 2024
1 parent 684e62e commit 505177a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ environment:
nodejs_version: "20"
matrix:
- QT: C:\Qt\5.15.2\msvc2019_64
GOROOT: C:\go
# As installed by `choco`
GOROOT: C:\Program Files\Go
GOPATH: C:\gopath\
GOTOOLCHAIN: local
PLATFORM: amd64
COMPILER: msvc
# https://www.appveyor.com/docs/windows-images-software/#golang
# If you change this, also change the GOROOT variable above to point to the right installation folder.
stack: go 1.22

install:
- ps: Install-Product node $env:nodejs_version
Expand All @@ -26,6 +24,9 @@ before_build:

build_script:
- echo on
- choco install go --version=1.22.6
- go version
- go env
- choco install make
- choco install nsis -pre
- mkdir %GOPATH%\src\github.com\BitBoxSwiss
Expand Down

0 comments on commit 505177a

Please sign in to comment.