Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Go toolchain for improved caching #541

Closed
wants to merge 1 commit into from

Conversation

fredrikaverpil
Copy link
Member

Why?

When the version of Go in the go directive of go.mod is different from the
version in the toolchain directive there is a cache conflict which causes errors
on cache extraction.

What?

Force go to always use the local toolchain (i.e. the one the one that shipped
with the go command being run) via setting the GOTOOLCHAIN environment variable
to local.

This means we'll have to make sure our GHA workflows uses the intended Go
version.

@fredrikaverpil fredrikaverpil requested a review from a team as a code owner April 24, 2024 12:14
@fredrikaverpil fredrikaverpil self-assigned this Apr 24, 2024
@fredrikaverpil
Copy link
Member Author

@thall we could try this in one of our projects first, as this addition can be added outside of this shared action.

@fredrikaverpil fredrikaverpil marked this pull request as draft April 24, 2024 12:26
@fredrikaverpil fredrikaverpil deleted the ignore-go-toolchain branch April 24, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant