This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new bafb270b48e Update go linter version (#37579)
bafb270b48e is described below
commit bafb270b48e3a98cd0b4642d77da27b0b0b2ebd0
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Thu Feb 12 19:04:28 2026 +0400
Update go linter version (#37579)
---
playground/backend/cmd/server/controller.go | 2 +-
playground/backend/cmd/server/server.go | 4 ++--
playground/backend/env_setup.sh | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/playground/backend/cmd/server/controller.go
b/playground/backend/cmd/server/controller.go
index f788f2e613f..29fa4de5ff2 100644
--- a/playground/backend/cmd/server/controller.go
+++ b/playground/backend/cmd/server/controller.go
@@ -491,7 +491,7 @@ func (controller *playgroundController) SaveSnippet(ctx
context.Context, req *pb
logger.Error("SaveSnippet(): the runner is trying to save the
snippet")
return nil, cerrors.InvalidArgumentError(errorTitleSaveSnippet,
"The runner doesn't support snippets")
}
- if req.Files == nil || len(req.Files) == 0 {
+ if len(req.Files) == 0 {
logger.Error("SaveSnippet(): files are empty")
return nil, cerrors.InvalidArgumentError(errorTitleSaveSnippet,
"Snippet must have files")
}
diff --git a/playground/backend/cmd/server/server.go
b/playground/backend/cmd/server/server.go
index cdac6a440f7..eebe123525f 100644
--- a/playground/backend/cmd/server/server.go
+++ b/playground/backend/cmd/server/server.go
@@ -18,7 +18,7 @@ package main
import (
"beam.apache.org/playground/backend/internal/external_functions"
"context"
- "fmt"
+ "errors"
"github.com/improbable-eng/grpc-web/go/grpcweb"
"google.golang.org/grpc"
"os"
@@ -153,7 +153,7 @@ func setupSdkCatalog(ctx context.Context, cacheService
cache.Cache, db db.Databa
if len(sdks) != len(sdkNames) {
errMsg := "setupSdkCatalog() database doesn't have all sdks"
logger.Error(errMsg)
- return nil, fmt.Errorf(errMsg)
+ return nil, errors.New(errMsg)
}
if err = cacheService.SetSdkCatalog(ctx, sdks); err != nil {
logger.Errorf("setupSdkCatalog() error during setting sdk
catalog to the cache, err: %s", err.Error())
diff --git a/playground/backend/env_setup.sh b/playground/backend/env_setup.sh
index 4fdecbb4f75..f2f8776fa19 100755
--- a/playground/backend/env_setup.sh
+++ b/playground/backend/env_setup.sh
@@ -14,7 +14,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-GO_LINTER_VERSION=1.59.1
+GO_LINTER_VERSION=2.9.0
# Install GO Linter
#wget
https://github.com/golangci/golangci-lint/releases/download/v1.42.1/golangci-lint-$GO_LINTER_VERSION-linux-amd64.deb