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

Ensure go-version is 1.20.8 #156

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Ensure go-version is 1.20.8 #156

merged 1 commit into from
Sep 14, 2023

Conversation

radeksimko
Copy link
Member

Back in #115 I made the mistake of removing the last digit (patch version) from .go-version.

This remained mostly invisible issue which was only found because of security scanners which raised alerts due to older Go version but only on some builds (e.g. linux/amd64 but not linux/arm64). This is because when a version without PATCH part is passed to actions/setup-go, it chooses any cached Go version which satisfies the constraint (1.20 in this case).

The cache for the Go toolchain is OS/arch specific which is how we have ended up compiling hc-install CLI with different Go versions at part of the same build (1.20.7 and 1.20.8 in this case).

Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, well spotted

@radeksimko radeksimko merged commit 6efd715 into main Sep 14, 2023
11 checks passed
@radeksimko radeksimko deleted the go-version-patch branch September 14, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants