-
Notifications
You must be signed in to change notification settings - Fork 24
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
Single source of truth for go version #138
Conversation
1ced3c9
to
5befa88
Compare
@@ -40,9 +42,6 @@ jobs: | |||
cd subnet-evm | |||
./scripts/build.sh /tmp/e2e-test/avalanchego/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy | |||
|
|||
- name: Checkout teleporter repository |
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.
This is already done above on line 23
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.
Looks good! Thanks for doing this!
"Requested changes" for a single character in gomod_checker.yml
haha. The other comments are questions for my own education as much as for improvement of this PR.
Co-authored-by: F. Eugene Aumson <[email protected]> Signed-off-by: Geoff Stuart <[email protected]>
…ter into gstuart/diff-go-mod-sum
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.
Generally LGTM. Made one small request.
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.
Generally LGTM, looks like the test.yml
is complaining about relayer version format
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.
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.
I don't love the pattern of using a value set within a comment throughout the code base. At the least, lets add a clear explanation to the comment regarding how it must be formatted and how it's used, but I think I would be in favor of just setting the full version explicitly in versions.sh
and having a comment there and in the go.mod that it should be updated in both places when needed.
That's similar to how AvalancheGo approaches it here: https://github.com/ava-labs/avalanchego/blob/master/go.mod#L3
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.
One last small request, then LGTM
Why this should be merged
Makes the go.mod file the single source of truth for the go version.
Adds a github action to check the go.mod file for any changes after a
go mod tidy
Also augments
versions.sh
to get the versions fromgo.mod
so we have a single source of truth for those too!How this works
go.mod
only allowsmajor.minor
version, so I've added a comment with the patch version that we will extract withsed
in order to install the correct golang version in docker and CI.How this was tested
How is this documented