* Bump Go version to 1.23.6

* Update CodeQL Github action as well

* Use server's Go version for CodeQL action

Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>

* Empty commit to trigger CI

* Bump golangci-lint to a version supporting Go 1.23

* Fix golangci-lint warnings

Several rules from gosimple, revive and staticcheck linters were
failing:
- Redefinition of built-in identifiers (max, min, new, recover...)
- Use of printf-like functions with simple strings
- Check for nil slices, when len already takes it into account

---------

Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Alejandro García Montoro
2025-02-26 16:43:04 +01:00
коммит произвёл GitHub
родитель 77ae2e2d6d
Коммит acbbd4c58d
23 изменённых файлов: 45 добавлений и 49 удалений

Просмотреть файл

@@ -1,8 +1,8 @@
module github.com/mattermost/mattermost/server/v8
go 1.22.0
go 1.23.0
toolchain go1.22.6
toolchain go1.23.6
require (
code.sajari.com/docconv/v2 v2.0.0-pre.4
@@ -242,10 +242,6 @@ require (
// github.com/bits-and-blooms/bitset and a couple of dependent repos are yet
// to update their module paths.
exclude (
// goquery requires go >= 1.23. Remove this once we upgrade to 1.23
github.com/PuerkitoBio/goquery v1.9.3
github.com/PuerkitoBio/goquery v1.10.0
github.com/PuerkitoBio/goquery v1.10.1
github.com/RoaringBitmap/roaring v0.7.0
github.com/RoaringBitmap/roaring v0.7.1
github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09