From a6199b1f4458f95d8ef634be3a478da902ff6e25 Mon Sep 17 00:00:00 2001 From: Yinuo Deng Date: Thu, 26 Oct 2023 14:46:13 +0800 Subject: [PATCH] Bumped the version of golangci-lint Signed-off-by: Yinuo Deng --- .github/workflows/go.yml | 2 +- .golangci.yml | 2 +- pkg/imageengine/buildah/inspect.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 31858c65615..fd48d90d065 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -50,7 +50,7 @@ jobs: fi - name: Install go ci lint - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0 + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0 - name: Run Linter run: golangci-lint run -v diff --git a/.golangci.yml b/.golangci.yml index e22e81dddd5..0d285d763fe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,4 +58,4 @@ issues: # https://github.com/golangci/golangci/wiki/Configuration service: # use the fixed version to not introduce new linters unexpectedly - golangci-lint-version: 1.39.0 + golangci-lint-version: 1.44.0 diff --git a/pkg/imageengine/buildah/inspect.go b/pkg/imageengine/buildah/inspect.go index 4ebd54f0ddf..27d34443502 100644 --- a/pkg/imageengine/buildah/inspect.go +++ b/pkg/imageengine/buildah/inspect.go @@ -31,7 +31,7 @@ import ( func (engine *Engine) Inspect(opts *options.InspectOptions) (*imagev1.ImageSpec, error) { if len(opts.ImageNameOrID) == 0 { - return nil, errors.Errorf("image name or image id must be specified.") + return nil, errors.Errorf("image name or image id must be specified") } var (