Merge pull request #6789 from thaJeztah/bump_golangci_lint

Dockerfile: update golangci-lint to v2.9.0 and fix linting
This commit is contained in:
Sebastiaan van Stijn
2026-02-12 14:07:29 +01:00
committed by GitHub
18 changed files with 45 additions and 42 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func (*GpuOpts) Type() string {
// String returns a string repr of this option
func (o *GpuOpts) String() string {
gpus := []string{}
gpus := make([]string, 0, len(o.values))
for _, gpu := range o.values {
gpus = append(gpus, fmt.Sprintf("%v", gpu))
}
+1 -1
View File
@@ -151,7 +151,7 @@ func (*MountOpt) Type() string {
// String returns a string repr of this option
func (m *MountOpt) String() string {
mounts := []string{}
mounts := make([]string, 0, len(m.values))
for _, mount := range m.values {
repr := fmt.Sprintf("%s %s %s", mount.Type, mount.Source, mount.Target)
mounts = append(mounts, repr)
+1 -1
View File
@@ -86,7 +86,7 @@ func (*ConfigOpt) Type() string {
// String returns a string repr of this option
func (o *ConfigOpt) String() string {
configs := []string{}
configs := make([]string, 0, len(o.values))
for _, config := range o.values {
repr := fmt.Sprintf("%s -> %s", config.ConfigName, config.File.Name)
configs = append(configs, repr)
+1 -1
View File
@@ -85,7 +85,7 @@ func (*SecretOpt) Type() string {
// String returns a string repr of this option
func (o *SecretOpt) String() string {
secrets := []string{}
secrets := make([]string, 0, len(o.values))
for _, secret := range o.values {
repr := fmt.Sprintf("%s -> %s", secret.SecretName, secret.File.Name)
secrets = append(secrets, repr)