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 #95

Merged
merged 11 commits into from
Aug 18, 2024
Merged

Update to Go 1.21 #95

merged 11 commits into from
Aug 18, 2024

Conversation

smallhive
Copy link
Contributor

Closes #61

Closes #61.

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]>
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 2.12%. Comparing base (abecf3c) to head (de0958d).
Report is 13 commits behind head on master.

Files Patch % Lines
internal/s3/s3.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master     #95      +/-   ##
=========================================
+ Coverage    2.11%   2.12%   +0.01%     
=========================================
  Files          11      11              
  Lines         758     754       -4     
=========================================
  Hits           16      16              
+ Misses        742     738       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-12, macos-14]
go: [ '1.20', '1.21', '1.22' ]
go: [ '1.21', '1.22' ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this commit should be squashed with the previous one. It's a little confusing when reviewing it in the order of commit history.

Copy link
Member

Choose a reason for hiding this comment

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

True, technically it creates an invalid (always failing) test job after go.mod is upgraded, but this line isn't.

@roman-khimov roman-khimov merged commit 175ce4e into master Aug 18, 2024
8 of 9 checks passed
@roman-khimov roman-khimov deleted the 61-go-121-check-list-new branch August 18, 2024 12:56
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 check list
3 participants