Skip to content

Commit 893fc9a

Browse files
authored
Update Go version to 1.25.2 (#36461)
* Update Go version to 1.25.2 * driveby: Fix a link. * Also update go.mod and CHANGES.md * lint
1 parent 6683a1a commit 893fc9a

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

.github/actions/setup-default-test-properties/test-properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"SPARK_VERSIONS": ["2", "3"]
1919
},
2020
"GoTestProperties": {
21-
"SUPPORTED_VERSIONS": ["1.23"]
21+
"SUPPORTED_VERSIONS": ["1.25"]
2222
}
2323
}

.github/actions/setup-environment-action/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ runs:
8383
if: ${{ inputs.go-version != '' }}
8484
uses: actions/setup-go@v5
8585
with:
86-
go-version: ${{ inputs.go-version == 'default' && '1.24' || inputs.go-version }} # never set patch, to get latest patch releases.
86+
go-version: ${{ inputs.go-version == 'default' && '1.25' || inputs.go-version }} # never set patch, to get latest patch releases.
8787
cache-dependency-path: $${{ inputs.disable-cache && '' || 'sdks/go.sum' }}

.github/gh-actions-self-hosted-runners/arc/images/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN curl -OL https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz &&
3131
mv /usr/local/node-v22.14.0-linux-x64 /usr/local/node
3232
ENV PATH="${PATH}:/usr/local/node/bin"
3333
#Install Go
34-
ARG go_version=1.24.0
34+
ARG go_version=1.25.2
3535
RUN curl -OL https://go.dev/dl/go${go_version}.linux-amd64.tar.gz && \
3636
tar -C /usr/local -xzf go${go_version}.linux-amd64.tar.gz && \
3737
rm go${go_version}.linux-amd64.tar.gz
@@ -69,7 +69,7 @@ RUN curl -OL https://dl.k8s.io/release/v1.28.1/bin/linux/amd64/kubectl && \
6969
chmod +x ./kubectl && \
7070
mv ./kubectl /usr/local/bin/kubectl
7171
#Install Apache Maven
72-
RUN curl -OL https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz && \
72+
RUN curl -OL https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz && \
7373
tar -xvf apache-maven-3.9.4-bin.tar.gz && \
7474
rm apache-maven-3.9.4-bin.tar.gz && \
7575
mv apache-maven-3.9.4 /usr/local/maven

.github/workflows/build_release_candidate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ jobs:
451451
fi
452452
- uses: actions/setup-go@v6
453453
with:
454-
go-version: '1.24'
454+
go-version: '1.25'
455455
- name: Import GPG key
456456
id: import_gpg
457457
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575

7676
## New Features / Improvements
7777

78-
* X feature added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).
7978
* Python examples added for CloudSQL enrichment handler on [Beam website](https://beam.apache.org/documentation/transforms/python/elementwise/enrichment-cloudsql/) (Python) ([#35473](https://github.com/apache/beam/issues/36095)).
8079
* Support for batch mode execution in WriteToPubSub transform added (Python) ([#35990](https://github.com/apache/beam/issues/35990)).
8180
* Added official support for Python 3.13 ([#34869](https://github.com/apache/beam/issues/34869)).
@@ -87,6 +86,7 @@
8786
This may break update compatibility if you don't provide a `--transform_name_mapping`.
8887
* Removed deprecated Hadoop versions (2.10.2 and 3.2.4) that are no longer supported for [Iceberg](https://github.com/apache/iceberg/issues/10940) from IcebergIO ([#36282](https://github.com/apache/beam/issues/36282)).
8988
* (Go) Coder construction on SDK side is more faithful to the specs from runners without stripping length-prefix. This may break streaming pipeline update as the underlying coder could be changed ([#36387](https://github.com/apache/beam/issues/36387)).
89+
* Minimum Go version for Beam Go updated to 1.25.2 ([#36461](https://github.com/apache/beam/issues/36461)).
9090

9191
## Deprecations
9292

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ class BeamModulePlugin implements Plugin<Project> {
23372337

23382338
// This sets the whole project Go version.
23392339
// The latest stable Go version can be checked at https://go.dev/dl/
2340-
project.ext.goVersion = "go1.24.4"
2340+
project.ext.goVersion = "go1.25.2"
23412341

23422342
// Minor TODO: Figure out if we can pull out the GOCMD env variable after goPrepare script
23432343
// completion, and avoid this GOBIN substitution.

dev-support/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RUN pip3 install --break-system-packages distlib==0.3.9 yapf==0.43.0 pytest plug
7474
###
7575
# Install Go
7676
###
77-
ENV DOWNLOAD_GO_VERSION=1.24.0
77+
ENV DOWNLOAD_GO_VERSION=1.25.2
7878
RUN wget https://golang.org/dl/go${DOWNLOAD_GO_VERSION}.linux-amd64.tar.gz && \
7979
tar -C /usr/local -xzf go${DOWNLOAD_GO_VERSION}.linux-amd64.tar.gz
8080
ENV GOROOT /usr/local/go

playground/infrastructure/cloudbuild/playground_ci_examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export STEP=CI
8484
export SDK_CONFIG="$BEAM_ROOT_DIR/playground/sdks.yaml"
8585
export BEAM_EXAMPLE_CATEGORIES="$BEAM_ROOT_DIR/playground/categories.yaml"
8686
export GRADLE_VERSION=7.5.1
87-
export GO_VERSION=1.24
87+
export GO_VERSION=1.25
8888

8989
LogOutput "Installing python java8 and dependencies"
9090
apt-get update > /dev/null

sdks/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
// directory.
2121
module github.com/apache/beam/sdks/v2
2222

23-
go 1.24.0
23+
go 1.25.0
2424

25-
toolchain go1.24.4
25+
toolchain go1.25.2
2626

2727
require (
2828
cloud.google.com/go/bigquery v1.70.0

sdks/go/run_with_go_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ set -e
3737
#
3838
# This variable is also used as the execution command downscript.
3939
# The list of downloadable versions are at https://go.dev/dl/
40-
GOVERS=go1.24.4
40+
GOVERS=go1.25.2
4141

4242
if ! command -v go &> /dev/null
4343
then

0 commit comments

Comments
 (0)