bump golangci-lint-action

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2025-02-21 11:32:37 +02:00
parent 2053d17564
commit 0f2ef4a4b6
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -185,7 +185,7 @@ func runAWSCmd() *cobra.Command {
if err != nil { if err != nil {
return fmt.Errorf("Error decoding output: %s", err) 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) log.Infof("Terminating instance %s", *instanceID)
terminateParams := &ec2.TerminateInstancesInput{ terminateParams := &ec2.TerminateInstancesInput{

View File

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