Skip to content

Commit

Permalink
chore: update go and linter version (#660)
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Casula <[email protected]>
  • Loading branch information
lvrach and fracasula authored Sep 27, 2024
1 parent 38eaf4a commit 1d7c2ce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.1
version: v1.61.0
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LDFLAGS?=-s -w
TESTFILE=_testok

# go tools versions
GOLANGCI=github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1
GOLANGCI=github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
gofumpt=mvdan.cc/gofumpt@latest
govulncheck=golang.org/x/vuln/cmd/govulncheck@latest
goimports=golang.org/x/tools/cmd/goimports@latest
Expand Down
2 changes: 1 addition & 1 deletion filemanager/digitaloceanmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (manager *digitalOceanManager) Upload(ctx context.Context, file *os.File, p
output, err := DOmanager.UploadWithContext(ctx, uploadInput)
if err != nil {
if awsError, ok := err.(awserr.Error); ok && awsError.Code() == "MissingRegion" {
err = fmt.Errorf(fmt.Sprintf(`Bucket '%s' not found.`, manager.Config.Bucket))
err = fmt.Errorf("bucket %q not found", manager.Config.Bucket)
}
return UploadedFile{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion filemanager/s3manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *S3Manager) Upload(ctx context.Context, file *os.File, prefixes ...strin
output, err := s3manager.UploadWithContext(ctx, uploadInput)
if err != nil {
if codeErr, ok := err.(codeError); ok && codeErr.Code() == "MissingRegion" {
err = fmt.Errorf(fmt.Sprintf(`Bucket '%s' not found.`, m.config.Bucket))
err = fmt.Errorf("bucket %q not found", m.config.Bucket)
}
return UploadedFile{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/rudderlabs/rudder-go-kit

go 1.22.7
go 1.23.1

replace github.com/gocql/gocql => github.com/scylladb/gocql v1.14.2

Expand Down
2 changes: 1 addition & 1 deletion testhelper/docker/resource/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*R
return err
}
if code != 0 {
return fmt.Errorf("mysql not ready:\n%s" + w.String())
return fmt.Errorf("mysql not ready:\n%s", w.String())
}
return nil
})
Expand Down
2 changes: 1 addition & 1 deletion testhelper/docker/resource/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*R
return err
}
if code != 0 {
return fmt.Errorf("postgres not ready:\n%s" + w.String())
return fmt.Errorf("postgres not ready:\n%s", w.String())
}

// 2. create a sql.DB and verify connection
Expand Down

0 comments on commit 1d7c2ce

Please sign in to comment.