appveyor / ci

AppVeyor community support repository
https://www.appveyor.com
344 stars 65 forks source link

Go version 1.13 when selecting 1.17 stack #3743

Closed thrasher- closed 2 years ago

thrasher- commented 2 years ago

Hi there,

We attempted to upgrade to the latest version of Golang (1.17.x) but it looks like the version is defaulting to 1.13.x. AppVeyor yaml file is here:

https://github.com/thrasher-corp/gocryptotrader/blob/e03134b0090a98af0945e54b773b1e321a9b11c6/.appveyor.yml

Previous version bumps have worked fine without any issues.

Output:

go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\appveyor\AppData\Local\go-build
set GOENV=C:\Users\appveyor\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=c:\gopath
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\gopath\src\github.com\thrasher-corp\gocryptotrader\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\appveyor\AppData\Local\Temp\1\go-build019540598=/tmp/go-build -gno-record-gcc-switches
go version
go version go1.13.3 windows/amd64
FeodorFitsner commented 2 years ago

stack is not (yet) supported on Windows. You should enable Go 1.17 through PATH.

thrasher- commented 2 years ago

I realised that I was using the default image of VS 2015, specifying image: Visual Studio 2019 now supports it and is working great. Will close this issue and thanks for your reply!