Closed thehejik closed 1 month ago
@thehejik When did this issue occur? Can you point to GH action?
When did this issue occur? Can you point to GH action?
It is in Install Go
step https://github.com/rancher/hosted-providers-e2e/actions/runs/11248211162/job/31272995264#step:13:85
What does this PR do?
actions/setup-go
:Problem is that
actions/setup-go
is confused when it seesgo 1.22.0
andtoolchain 1.22.7
in go.mod.The action first prepares environment for 1.22.0 (go) and then trying to override it by cached dependencies using go toolchain version 1.22.7.
By introducing this workaround we will simply install requested
go 1.22.0
(the version from go.mod) and the rest for dependencies ?should be? processed automatically within a build time.Since
toolchain
keyword was introduced in go.mod our actions are returning errors like:Checklist:
Special notes for your reviewer: