Update minimum go version to 1.26.1, golangci-lint to 2.11.2, fix test style (#36876)

Hey, I bumped Go to 1.26.1 and fixed a couple of things I ran into while
poking around.

### Changes

- Bump go.mod from 1.26.0 to 1.26.1 (security patch)
- Bump golangci-lint from v2.10.1 to v2.11.2
- Run make tidy, fmt, lint-go

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
This commit is contained in:
Nicolas
2026-03-10 07:26:52 +01:00
committed by GitHub
parent 1dfb32a36f
commit 8d06a9425e
9 changed files with 20 additions and 16 deletions

2
go.mod
View File

@@ -1,6 +1,6 @@
module code.gitea.io/gitea
go 1.26.0
go 1.26.1
// rfc5280 said: "The serial number is an integer assigned by the CA to each certificate."
// But some CAs use negative serial number, just relax the check. related: