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

Update to Go 1.18 #1479

Merged
merged 3 commits into from
Aug 12, 2022
Merged

Update to Go 1.18 #1479

merged 3 commits into from
Aug 12, 2022

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Aug 11, 2022

This:

  1. Bumps go.mod to 1.18. 1.17 is out of support as of 1.19's release and there's no real pressing
    need to stay on 1.17. 1.18 apparently has a smarter traversal of deps as
    quite a few entries in go.sum get plucked out.

  2. Pins the CI to a patch release of 1.18. Prior we were
    using a caret specifier set to ^1.17.0 which matches to >= 1.17.0 but <2.0.0.
    This also moves all go-version calls to read from a global environment
    variable so we only need to edit one spot to change the go version in our CI.

  3. Updates golangci-lint to 1.48.0 and the v3 version of the action.

1.17 is out of support as of 1.19's release and there's no real pressing
need to stay on 1.17. 1.18 apparently has a smarter traversal of deps as
quite a few entries get plucked out.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
This change pins the CI to a patch release of 1.18. Prior we were
using a caret specifier set to ^1.17.0 which matches to

>= 1.17.0 but <2.0.0

Additionally move all go-version calls to read from a global environment
variable so we only need to edit one spot to change the go version.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
@dcantah dcantah requested a review from a team as a code owner August 11, 2022 22:01
@dcantah dcantah marked this pull request as draft August 11, 2022 22:04
Might as well stay up to date, and the version we were using I
believe didn't support linting generics

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
@dcantah dcantah marked this pull request as ready for review August 11, 2022 22:29
Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

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

LGTM pending green CI

@dcantah
Copy link
Contributor Author

dcantah commented Aug 11, 2022

Linter has a bunch of new things to whine about on our old code, namely to get off of ioutil and some gofmt things. We have only-new-issues: true for our linter runs to only check issues introduced in the PR itself (maybe we turn this off now). @helsaawy @kevpar wanna get this checked in and I'll make a new PR to fix the lint issues in one sweep? Or would you prefer in this PR?

@kevpar
Copy link
Member

kevpar commented Aug 11, 2022

Sure, we can fix in a future PR as long as the linter isn't actively complaining.

@dcantah dcantah merged commit 0de9bee into microsoft:main Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants