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

hack: add go-version-check.sh script #315

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

phlogistonjohn
Copy link
Collaborator

Related to, but not blocked on, #314

Add a script that validates the Dockefile (or other specified container files) or shows the list of current supported golang version images. The goal is to ensure we are continually using a supported Go version and not falling behind.

Add a new check-dockerfile-go-version makefile target and include it in the check target. This runs the recently added script to validate the version of golang used to build in container.

The downside of this approach is that PRs & other work unrelated to Golang may periodically break when Go issues a new major release.
Let's try this for now and if it ends up getting really annoying we can try to do some other form of automation to alert us to the need of a version bump that doesn't interfere with unrelated work.

Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

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

OK, but few style comments

hack/go-version-check.sh Outdated Show resolved Hide resolved
hack/go-version-check.sh Show resolved Hide resolved
hack/go-version-check.sh Show resolved Hide resolved
hack/go-version-check.sh Outdated Show resolved Hide resolved
hack/go-version-check.sh Outdated Show resolved Hide resolved
Go 1.20 was recently released so this gets us back on a supported golang
version when building via the container.

Signed-off-by: John Mulligan <[email protected]>
hack/go-version-check.sh Show resolved Hide resolved
hack/go-version-check.sh Outdated Show resolved Hide resolved
This script validates the Dockefile (or other specified container files)
or shows the list of current supported golang version images. The goal
is to ensure we are continually using a supported Go version and not
falling behind.

Signed-off-by: John Mulligan <[email protected]>
Add a new check-dockerfile-go-version makefile target and include it in
the check target. This runs the recently added script to validate the
version of golang used to build in container.

The downside of this approach is that PRs & other work unrelated to
Golang may periodically break when Go issues a new major release.
Let's try this for now and if it ends up getting really annoying we can
try to do some other form of automation to alert us to the need of
a version bump that doesn't interfere with unrelated work.

Signed-off-by: John Mulligan <[email protected]>
Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

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

Good catch by @anoopcs9 -- LGTM now

@mergify mergify bot merged commit ec7f469 into samba-in-kubernetes:master Aug 28, 2023
12 checks passed
@mergify mergify bot added the priority-review This PR deserves a look label Sep 12, 2023
@phlogistonjohn phlogistonjohn deleted the jjm-go-vers-2 branch November 29, 2023 15:37
@anoopcs9 anoopcs9 mentioned this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-review This PR deserves a look
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants