rancher / hosted-providers-e2e

Apache License 2.0
0 stars 4 forks source link

Fix cache for actions/setup-go #180

Closed thehejik closed 1 month ago

thehejik commented 1 month ago

What does this PR do?

Problem is that actions/setup-go is confused when it sees go 1.22.0 and toolchain 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: image

Checklist:

Special notes for your reviewer:

valaparthvi commented 1 month ago

@thehejik When did this issue occur? Can you point to GH action?

thehejik commented 1 month ago

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