-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update Go versions in all modules #24
Update Go versions in all modules #24
Conversation
7a0a0c9
to
86a8c78
Compare
86a8c78
to
3deb700
Compare
.github/workflows/plugins.yml
Outdated
id: setup-go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.16 | ||
go-version: "1.17" |
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.
golangci-lint
does not currently support Go 1.18 fully yet (golangci/golangci-lint#2649), hence pinning to Go 1.17 for linting workflows.
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.
Can we instead use v2 of the action which seems to support Go1.18 (ref)? That's what Turing is using too.
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.
Oh, I misread your comment, the issue here is with golangci-lint
, i.e if we use Go 1.18, the linter will fail.
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.
Umm I think you changed the wrong action earlier. I meant golangci/golangci-lint-action@v3
.
You can refer to this: https://github.com/gojek/turing/blob/main/.github/workflows/turing.yaml#L242
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.
Oh, I thought you meant setup. Ok I've updated that. I also refactored the versions to be part of environment variables so it'll be easier to change versions moving forward.
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.
Thanks for this PR. Left some comments / questions. Please feel free to merge after reviewing them.
.github/workflows/plugins.yml
Outdated
id: setup-go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.16 | ||
go-version: "1.17" |
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.
Can we instead use v2 of the action which seems to support Go1.18 (ref)? That's what Turing is using too.
.github/workflows/plugins.yml
Outdated
@@ -51,6 +51,11 @@ jobs: | |||
with: | |||
fetch-depth: 0 | |||
|
|||
- name: Set up Go 1.18 |
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.
Most of the changes to this file can be reverted after resolving: #24 (comment)
What this PR does / why we need it:
This PR is to keep our Go version up-to-date, by upgrading from
1.16
to1.18
.Which issue(s) this PR fixes:
NONE