From 50fd43e1d4d45b75c75290a2f3eefcae076b84d6 Mon Sep 17 00:00:00 2001 From: Xueqin Cui Date: Thu, 9 Apr 2026 16:23:17 +1000 Subject: [PATCH] chore: update Go version to 1.26.2 --- Dockerfile | 2 +- action.dockerfile | 2 +- docs/installation.md | 2 +- go.mod | 2 +- goreleaser-action.dockerfile | 2 +- goreleaser.dockerfile | 2 +- scripts/run_lints.sh | 2 +- scripts/test_env.dockerfile | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 148dd1cf267..36bbf42e84f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS builder +FROM golang:1.26.2-alpine3.23@sha256:c2a1f7b2095d046ae14b286b18413a05bb82c9bca9b25fe7ff5efef0f0826166 AS builder WORKDIR /src COPY ./go.mod ./go.sum ./ diff --git a/action.dockerfile b/action.dockerfile index 3f53bd5a102..f03796785ea 100644 --- a/action.dockerfile +++ b/action.dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # WARNING, this workflow is for legacy purposes. To view the current workflow see: https://github.com/google/osv-scanner-action -FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 +FROM golang:1.26.2-alpine3.23@sha256:c2a1f7b2095d046ae14b286b18413a05bb82c9bca9b25fe7ff5efef0f0826166 RUN mkdir /src WORKDIR /src diff --git a/docs/installation.md b/docs/installation.md index d618dbc14d9..a2420eaf8ec 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -84,7 +84,7 @@ Alternatively, you can install this from source by running: go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest ``` -This requires Go 1.25.7+ to be installed. +This requires Go 1.26.2+ to be installed. ## Build from source diff --git a/go.mod b/go.mod index 17c39b0753b..9d20e243dd8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/osv-scanner/v2 -go 1.26.1 +go 1.26.2 require ( charm.land/bubbles/v2 v2.0.0 diff --git a/goreleaser-action.dockerfile b/goreleaser-action.dockerfile index ff378ea513d..27aed1cd1a1 100644 --- a/goreleaser-action.dockerfile +++ b/goreleaser-action.dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 +FROM golang:1.26.2-alpine3.23@sha256:c2a1f7b2095d046ae14b286b18413a05bb82c9bca9b25fe7ff5efef0f0826166 RUN apk --no-cache add \ ca-certificates \ git \ diff --git a/goreleaser.dockerfile b/goreleaser.dockerfile index 374a2628ccb..1f598775420 100644 --- a/goreleaser.dockerfile +++ b/goreleaser.dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 +FROM golang:1.26.2-alpine3.23@sha256:c2a1f7b2095d046ae14b286b18413a05bb82c9bca9b25fe7ff5efef0f0826166 RUN apk add --no-cache \ ca-certificates \ git diff --git a/scripts/run_lints.sh b/scripts/run_lints.sh index 364988068ee..705f1bdadb9 100755 --- a/scripts/run_lints.sh +++ b/scripts/run_lints.sh @@ -2,5 +2,5 @@ set -ex -export GOTOOLCHAIN="${GOTOOLCHAIN:-go1.26.1}" +export GOTOOLCHAIN="${GOTOOLCHAIN:-go1.26.2}" go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(cat .golangci-lint-version) run ./... "$@" diff --git a/scripts/test_env.dockerfile b/scripts/test_env.dockerfile index 32e3963eb15..d5c4bcf96b0 100644 --- a/scripts/test_env.dockerfile +++ b/scripts/test_env.dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 +FROM golang:1.26.2-alpine3.23@sha256:c2a1f7b2095d046ae14b286b18413a05bb82c9bca9b25fe7ff5efef0f0826166 RUN apk --no-cache add \ npm \