chore: update deps, adapt lint, use json v2 (#1185)

- Raised go to 1.27
- Adopted json v2
- Sync lint config from gitea
- Fixed all issues

Co-authored-by: silverwind <[email protected]>
Reviewed-on: https://gitea.com/gitea/runner/pulls/1185
Reviewed-by: bircni <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
This commit is contained in:
Renovate Botandsilverwind authored and bircni committed 2026-08-24 19:53:17 +00:00
1 parent 7b4356c746
commit e30c2fed62
47 files changed
+319 -288

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ package artifacts
import (
"context"
"encoding/json"
"encoding/json/v2"
"errors"
"fmt"
"io"
@@ -100,7 +100,7 @@ func uploads(router *httprouter.Router, baseDir string) {
}
defer file.Close()
if req.Body == nil {
panic(errors.New("No body given"))
panic(errors.New("no body given"))
}
_, err = io.Copy(file, req.Body)
+1 -1
View File
@@ -7,7 +7,7 @@ package artifacts
import (
"bytes"
"compress/gzip"
"encoding/json"
"encoding/json/v2"
"io"
"maps"
"net/http"