-
Notifications
You must be signed in to change notification settings - Fork 731
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: update go version check in Makefile for minimum versions #3302
chore: update go version check in Makefile for minimum versions #3302
Conversation
Thanks for opening the issue. The changes are a little older #2095. The intention was to prevent node operators from older versions of golang due to non-determinism issues that caused apphashes between go version Given that newer go versions (starting from I propose we make it so that a minimum version is enforced. Using a version lower than the minimum should stil hardfail. Any thoughts on this? EDIT: |
@MSalopek Can you expand a bit on this? 👀
I'm trying to understand what benefits this |
@MSalopek
|
Current main is undergoing changes, this is not relevant atm. |
Yes. We removed the check once in the past and got some push back. We would still like to stop building if you use an "old" golang version. Does it make sense? |
@MSalopek What do you think about this? check_version:
ifneq ($(shell [ "$(GO_SYSTEM_VERSION)" \< "$(REQUIRE_GO_VERSION)" ] && echo true),)
@echo "ERROR: Minimum Go version $(REQUIRE_GO_VERSION) is required for $(VERSION) of Gaia."
exit 1
endif |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve.
I agree with enfocing a minimum version.
Description
This PR updates the go version check in the top-level Makefile, that's causing the
install
Make directive to fail if higher version of go are available system wide (ex.1.23
) when runningmake install
.The go version check was previously introduced in #2095, whose faulty check caused this issue.
cc @MSalopek
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...