Require go1.25, fix linter warnings

This commit is contained in:
Ingo Oppermann 2026-02-12 17:04:05 +01:00
parent 0a6d772b98
commit 432417ea32
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E
16 changed files with 2720 additions and 6083 deletions

View File

@ -266,11 +266,11 @@ func (a *api) Reload() error {
"description": v.Description,
"override": v.Merged,
})
configlogger.Debug().Log(message)
configlogger.Debug().Log("%s", message)
switch level {
case "warn":
configlogger.Warn().Log(message)
configlogger.Warn().Log("%s", message)
case "error":
configlogger.Error().WithField("error", message).Log("")
default:

View File

@ -61,7 +61,7 @@ func doMigration(logger log.Logger, fs fs.Filesystem, configstore cfgstore.Store
"value": v.Value,
"env": v.EnvName,
"description": v.Description,
}).Log(message)
}).Log("%s", message)
messages = append(messages, v.Name+": "+message)
}

View File

@ -59,7 +59,7 @@ func doImport(logger log.Logger, filesystem fs.Filesystem, configstore cfgstore.
"value": v.Value,
"env": v.EnvName,
"description": v.Description,
}).Log(message)
}).Log("%s", message)
messages = append(messages, v.Name+": "+message)
}

View File

@ -49,7 +49,7 @@ func (l *hclogger) Log(level hclog.Level, msg string, args ...interface{}) {
msg = strings.ToUpper(msg[:1]) + msg[1:]
}
logger.Log(msg)
logger.Log("%s", msg)
}
func (l *hclogger) argFields(args ...interface{}) log.Fields {

4
go.mod
View File

@ -1,8 +1,6 @@
module github.com/datarhei/core/v16
go 1.24.0
toolchain go1.24.2
go 1.25.7
require (
github.com/99designs/gqlgen v0.17.84

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -1,8 +1,9 @@
package resolver
// This file will be automatically regenerated based on the schema, any resolver implementations
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.75
// Code generated by github.com/99designs/gqlgen version v0.17.84
import (
"context"

View File

@ -579,9 +579,9 @@ func TestProcessResources(t *testing.T) {
require.Equal(t, app.ProcessUsage{
CPU: app.ProcessUsageCPU{
NCPU: 2,
Current: 12,
Average: 12,
Max: 12,
Current: 6,
Average: 6,
Max: 6,
Limit: 0,
IsThrottling: false,
},

View File

@ -33,14 +33,6 @@ func newConnectionFromDemuxCloser(m av.DemuxCloser) connection {
return c
}
func newConnectionFromMuxCloser(m av.MuxCloser) connection {
c := &conn{
muxer: m,
}
return c
}
func newConnectionFromMuxer(m av.Muxer) connection {
c := &conn{
muxer: &fakeMuxCloser{m},

View File

@ -215,7 +215,7 @@ func (s *server) log(who, handler, action, resource, message string, client net.
"action": action,
"resource": resource,
"client": client.String(),
}).Log(message)
}).Log("%s", message)
}
type PlayError struct {

View File

@ -280,7 +280,7 @@ func (s *server) log(who, handler, action, resource, message string, client net.
"action": action,
"resource": resource,
"client": client.String(),
}).Log(message)
}).Log("%s", message)
}
func (s *server) handleConnect(req srt.ConnRequest) srt.ConnType {