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

Go 1.22 #183

Merged
merged 8 commits into from
Aug 22, 2024
Merged

Go 1.22 #183

merged 8 commits into from
Aug 22, 2024

Conversation

roman-khimov
Copy link
Member

No description provided.

Fixes #153.

Signed-off-by: Roman Khimov <[email protected]>
Don't use deprecated version.

Signed-off-by: Roman Khimov <[email protected]>
roman-khimov and others added 5 commits August 21, 2024 22:05
It doesn't seem to be used by anyone even though we still have some records in
go.sum for whatever reason.

Signed-off-by: Roman Khimov <[email protected]>
github.com/k14s/ytt has moved to github.com/vmware-tanzu/carvel-ytt (0.40.0)
and then to carvel.dev/ytt (0.48.0). It has also change the package we used
somewhere between 0.40.0 and 0.42.0, now it doesn't provide NewCmd, so we have
to do a bit more, but the end result seems to be the same.

0.49.1 is last safe one to upgrade, current 0.50.0 immediately results in the
following go.mod changset:

--- a/cmd/go.mod
+++ b/cmd/go.mod
@@ -1,9 +1,11 @@
 module github.com/nspcc-dev/neo-bench

-go 1.22
+go 1.22.5
+
+toolchain go1.23.0
...

(looks like their Go policy is even more fun than ours) and we certainly
don't want that.

Signed-off-by: Roman Khimov <[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: Leonard Lyubich <[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: Leonard Lyubich <[email protected]>
@AnnaShaleva AnnaShaleva merged commit 9224595 into master Aug 22, 2024
8 checks passed
@AnnaShaleva AnnaShaleva deleted the go-1.22 branch August 22, 2024 05:36
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