bump golangci-lint-action (#4109)

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2025-02-23 16:40:29 +02:00 committed by GitHub
parent 2053d17564
commit 5dbd8082fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ jobs:
- name: golangci-lint CLI
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.0
version: v1.63.4
working-directory: src/cmd/linuxkit
args: --verbose --timeout=10m
- name: go vet CLI

View File

@ -377,7 +377,7 @@ func (g GCPClient) GetInstanceSerialOutput(instance, zone string) error {
}
return err
}
fmt.Printf(res.Contents)
fmt.Print(res.Contents)
next = res.Next
// When the instance has been stopped, Start and Next will both be 0
if res.Start > 0 && next == 0 {
@ -429,7 +429,7 @@ func (g GCPClient) ConnectToInstanceSerialPort(instance, zone string) error {
break
}
if conn == nil {
return fmt.Errorf(err.Error())
return err
}
defer conn.Close()

View File

@ -185,7 +185,7 @@ func runAWSCmd() *cobra.Command {
if err != nil {
return fmt.Errorf("Error decoding output: %s", err)
}
fmt.Printf(string(out) + "\n")
fmt.Printf("%s\n", string(out))
}
log.Infof("Terminating instance %s", *instanceID)
terminateParams := &ec2.TerminateInstancesInput{

View File

@ -615,7 +615,7 @@ func (s *ScalewayClient) ConnectSerialPort(instanceID string) error {
go func() {
err = gottyClient.Loop()
if err != nil {
fmt.Printf("ERROR: " + err.Error())
fmt.Printf("ERROR: %v", err)
}
//gottyClient.Close()
done <- true