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

chore: stop checking go version in Makefile #951

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

fnaranjo-vmw
Copy link
Contributor

@fnaranjo-vmw fnaranjo-vmw commented Feb 12, 2024

#187027977

Before Go 1.21:

  • The go directive was advisory only; now it is a mandatory requirement
  • The go directive didn't allow specifying patch versions

So, by specifying the patch version in go.mod:

  • Noone can unknowingly test, run or build this project using an older version of go
  • The required Go toolchain can be downloaded automatically

Therefore, checking the current go version in Makefile is no longer needed.

Checklist:

  • Have you added or updated tests to validate the changed functionality?
  • Have you added Release Notes in the docs repositories?
  • Have you followed the Conventional Commits specification?

Before Go 1.21:
- The go directive was advisory only; now it is a mandatory requirement
- The go directive didn't allow specifying patch versions

So, by specifying the patch version in go.mod:
- Noone can unknowingly test, run or build this project using an older version of go
- The required Go toolchain can be downloaded automatically

Therefore, checking the current go version in Makefile is no longer needed.
Copy link
Member

@blgm blgm left a comment

Choose a reason for hiding this comment

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

Using version checking built into Go is much better than using our own. Thanks @fnaranjo-vmw!

@fnaranjo-vmw fnaranjo-vmw merged commit 605d7e5 into main Feb 13, 2024
7 checks passed
@fnaranjo-vmw fnaranjo-vmw deleted the chore-remove-makefile-go-version-check branch February 13, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants