[release-10.4.18] Go: Bump to 1.24.2 (#103531)

* Go: Bump to 1.24.2

* CI: Update golangci-lint

* feat: update swagger

* fix: more lints

* fix: lints
This commit is contained in:
Mariell Hoversholm
2025-04-09 11:12:33 +02:00
committed by GitHub
parent ee117f713e
commit 750b094dda
75 changed files with 846 additions and 368 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ func validateLBACHeader(headervalue string) bool {
return false
}
match := pattern.FindSubmatch([]byte(strings.TrimSpace(headervalue)))
if match == nil || len(match) < 2 {
if len(match) < 2 {
return false
}
_, err = parser.ParseMetricSelector(string(match[1]))
+1 -1
View File
@@ -79,7 +79,7 @@ func GrafanaJavascriptAgentLogMessageHandler(store *frontendlogging.SourceMapSto
for _, exception := range event.Exceptions {
var ctx = frontendlogging.CtxVector{}
ctx = event.AddMetaToContext(ctx)
exception := exception
transformedException := frontendlogging.TransformException(c.Req.Context(), &exception, store)
ctx = append(ctx, "kind", "exception", "type", transformedException.Type, "value", transformedException.Value, "stacktrace", transformedException.String())
ctx = append(ctx, "original_timestamp", exception.Timestamp)
@@ -10,7 +10,6 @@ func TransformException(ctx context.Context, ex *Exception, store *SourceMapStor
frames := []Frame{}
for _, frame := range ex.Stacktrace.Frames {
frame := frame
mappedFrame, err := store.resolveSourceLocation(ctx, frame)
if err != nil {
frames = append(frames, frame)
-1
View File
@@ -94,7 +94,6 @@ func TestErrors(t *testing.T) {
}
for _, tc := range cases {
tc := tc
t.Run(
tc.name+" Error",
compareResponses(tc.legacyResponse, Error(
+1
View File
@@ -673,6 +673,7 @@ func (hs *HTTPServer) SetHelpFlag(c *contextmodel.ReqContext) response.Response
}
bitmask := &usr.HelpFlags1
//nolint:gosec // G115
bitmask.AddFlag(user.HelpFlags1(flag))
cmd := user.SetUserHelpFlagCommand{