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.21 #54

Merged
merged 7 commits into from
Aug 18, 2024
Merged

Update to Go 1.21 #54

merged 7 commits into from
Aug 18, 2024

Conversation

smallhive
Copy link
Contributor

@smallhive smallhive commented Aug 15, 2024

Close #34

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

Looks like there is nothing to improve here code-wise.

@@ -12,7 +12,8 @@ run:
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: tab
formats:
Copy link
Member

Choose a reason for hiding this comment

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

Please at least reference similar PRs in other repos. Or better yet apply commits from @cthulhu-rider (like in nspcc-dev/rfc6979#8), they have perfect descriptions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
go_versions: [ '1.20', '1.21', '1.22' ]
go_versions: [ '1.21', '1.22', '1.23' ]
Copy link
Member

Choose a reason for hiding this comment

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

1.23 is a separate change, but we need to adapt to our new policy and drop one version from the set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed 1.23 and reduced to just couple versions

Dockerfile Outdated
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine as basebuilder
FROM golang:1.23-alpine as basebuilder
Copy link
Member

Choose a reason for hiding this comment

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

Not here, it's a part of #43.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed from PR

Closes #34.

Signed-off-by: Evgenii Baidakov <[email protected]>
Adapt to our new policy.

Signed-off-by: Evgenii Baidakov <[email protected]>
According to https://golangci-lint.run/usage/linters/#govet,
`check-shadowing` no longer exists. Now it should be
```yaml
govet:
  disable: [shadow]
```
but `shadow` is disabled by default. Thus, whole `govet` section is not
needed anymore.

```
$ golangci-lint --version
golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
```

Signed-off-by: Evgenii Baidakov <[email protected]>
This fixes
```
$ golangci-lint --version
golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
$ golangci-lint run ./...
WARN [config_reader] The configuration option `output.format` is deprecated, please use `output.formats`
```

The configuration file is updated according to
https://golangci-lint.run/usage/configuration/.

Signed-off-by: Evgenii Baidakov <[email protected]>
@roman-khimov roman-khimov merged commit 7d67eb5 into master Aug 18, 2024
8 checks passed
@roman-khimov roman-khimov deleted the 34-go-121-update-check-list branch August 18, 2024 13:00
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.

Go 1.21 update check list
2 participants