You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/05/09 08:33:14 UTC
(opendal) branch main updated: chore(deps): bump golangci/golangci-lint-action from 6 to 7 (#6134)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 0ba8574b6 chore(deps): bump golangci/golangci-lint-action from 6 to 7 (#6134)
0ba8574b6 is described below
commit 0ba8574b6d08d209056704d28a9a114beb3c1022
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri May 9 16:33:09 2025 +0800
chore(deps): bump golangci/golangci-lint-action from 6 to 7 (#6134)
* chore(deps): bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <su...@github.com>
* ci(bindings/go): bump golangci-lint-action to v8
* fix(bindings/go): lint
---------
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
Co-authored-by: Hanchin Hsieh <me...@yuchanns.xyz>
---
.github/workflows/ci_bindings_go.yml | 4 ++--
bindings/go/lister.go | 7 ++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci_bindings_go.yml b/.github/workflows/ci_bindings_go.yml
index 12e0d9d2e..d6aca5403 100644
--- a/.github/workflows/ci_bindings_go.yml
+++ b/.github/workflows/ci_bindings_go.yml
@@ -51,7 +51,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: stable
- - uses: golangci/golangci-lint-action@v6
+ - uses: golangci/golangci-lint-action@v8
with:
- version: "v1.64"
+ version: "v2.1"
working-directory: bindings/go
diff --git a/bindings/go/lister.go b/bindings/go/lister.go
index d827e1691..5ec7de0d5 100644
--- a/bindings/go/lister.go
+++ b/bindings/go/lister.go
@@ -58,7 +58,12 @@ func (op *Operator) Check() (err error) {
if err != nil {
return
}
- defer ds.Close()
+ defer func() {
+ closeErr := ds.Close()
+ if err == nil {
+ err = closeErr
+ }
+ }()
ds.Next()
err = ds.Error()
if err, ok := err.(*Error); ok && err.Code() == CodeNotFound {