mirror of
https://github.com/coreos/coreos-assembler.git
synced 2026-02-05 09:44:53 +01:00
lints: bump to golintcli to 1.64.4 on go 1.24
address new lints imposed by go 1.24
This commit is contained in:
committed by
Dusty Mabe
parent
8e16f5f647
commit
57c7f0a948
4
.github/workflows/lints.yml
vendored
4
.github/workflows/lints.yml
vendored
@@ -28,10 +28,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.21
|
||||
go-version: 1.24
|
||||
- uses: actions/checkout@v3
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.55.1
|
||||
version: v1.64.4
|
||||
args: --timeout=5m
|
||||
|
||||
@@ -52,7 +52,7 @@ func runDeleteBlob(cmd *cobra.Command, args []string) {
|
||||
if err != nil {
|
||||
plog.Fatalf("Fetching storage service keys failed: %v", err)
|
||||
}
|
||||
if kr.Keys == nil || len(kr.Keys) == 0 {
|
||||
if len(kr.Keys) == 0 {
|
||||
plog.Fatalf("No storage service keys found")
|
||||
}
|
||||
k := kr.Keys
|
||||
|
||||
@@ -86,7 +86,7 @@ func runUploadBlob(cmd *cobra.Command, args []string) {
|
||||
if err != nil {
|
||||
plog.Fatalf("Fetching storage service keys failed: %v", err)
|
||||
}
|
||||
if kr.Keys == nil || len(kr.Keys) == 0 {
|
||||
if len(kr.Keys) == 0 {
|
||||
plog.Fatalf("No storage service keys found")
|
||||
}
|
||||
k := kr.Keys
|
||||
|
||||
@@ -189,7 +189,7 @@ kernel_arguments:
|
||||
if err != nil {
|
||||
return err
|
||||
} else if string(kdump_status) == "inactive" {
|
||||
return fmt.Errorf(fmt.Sprintf("Kdump.service is not ready: %s.", string(kdump_status)))
|
||||
return fmt.Errorf("kdump.service is not ready: %s", string(kdump_status))
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
@@ -612,7 +612,8 @@ func checkExpectedInterfacesStatus(c cluster.TestCluster, m platform.Machine, ma
|
||||
}
|
||||
|
||||
if len(failedConnections) != 0 {
|
||||
return fmt.Errorf(strings.Join(failedConnections, ","))
|
||||
failed := strings.Join(failedConnections, ",")
|
||||
return fmt.Errorf("failed connections: %s", failed)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -642,7 +643,8 @@ func checkExpectedInterfacesIPAddress(c cluster.TestCluster, m platform.Machine,
|
||||
}
|
||||
|
||||
if len(failedConnections) != 0 {
|
||||
return fmt.Errorf(strings.Join(failedConnections, ","))
|
||||
failed := strings.Join(failedConnections, ",")
|
||||
return fmt.Errorf("failed connections: %s", failed)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user