Bump Go version to 1.23.6 (#30242)

* 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>
This commit is contained in:
Alejandro García Montoro
2025-02-26 16:43:04 +01:00
committed by GitHub
co-authored by Antonis Stamatiou Mattermost Build
parent 77ae2e2d6d
commit acbbd4c58d
23 changed files with 45 additions and 49 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version-file: server/go.mod
if: ${{ matrix.language == 'go' }}