Skip to content

Commit 0afbdf6

Browse files
authored
Update Go Version to 1.26.1 (#37897)
* Update Go Version to 1.26.1 * update CHANGES.md * fix broken formatting directives
1 parent 4221266 commit 0afbdf6

12 files changed

Lines changed: 23 additions & 20 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"SPARK_VERSIONS": ["3"]
1919
},
2020
"GoTestProperties": {
21-
"SUPPORTED_VERSIONS": ["1.25"]
21+
"SUPPORTED_VERSIONS": [
22+
"1.26"
23+
]
2224
}
2325
}

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

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

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

Lines changed: 1 addition & 1 deletion
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.25.2
34+
ARG go_version=1.26.1
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

.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.25'
454+
go-version: '1.26'
455455
- name: Import GPG key
456456
id: import_gpg
457457
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171

7272
* Added support for large pipeline options via a file (Python) ([#37370](https://github.com/apache/beam/issues/37370)).
7373
* Supported infer schema from dataclass (Python) ([#22085](https://github.com/apache/beam/issues/22085)). Default coder for typehint-ed (or set with_output_type) for non-frozen dataclasses changed to RowCoder. To preserve the old behavior (fast primitive coder), explicitly register the type with FastPrimitiveCoder.
74+
* Updates minimum Go version to 1.26.1 ([#37897](https://github.com/apache/beam/issues/37897)).
7475

7576
## Breaking Changes
7677

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

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

23152315
// This sets the whole project Go version.
23162316
// The latest stable Go version can be checked at https://go.dev/dl/
2317-
project.ext.goVersion = "go1.26.0"
2317+
project.ext.goVersion = "go1.26.1"
23182318

23192319
// Minor TODO: Figure out if we can pull out the GOCMD env variable after goPrepare script
23202320
// 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.25.2
77+
ENV DOWNLOAD_GO_VERSION=1.26.1
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.25
87+
export GO_VERSION=1.26
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.25.0
23+
go 1.26.0
2424

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

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

sdks/go/pkg/beam/core/runtime/contextreg/contextreg_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestPTransformExtractor(t *testing.T) {
7373
t.Errorf("extracted annotation %q = %q, want %q", key, got, want)
7474
}
7575
if got, want := len(ptrans.Annotations), 2; got != want {
76-
t.Errorf("extracted annotation %q = %q, want %q - have %v", key, got, want, ptrans)
76+
t.Errorf("extracted annotation %v = %d, want %d - have %v", key, got, want, ptrans)
7777
}
7878
}
7979

@@ -103,6 +103,6 @@ func TestHintExtractor(t *testing.T) {
103103
t.Errorf("extracted annotation %q = %q, want %q", key, got, want)
104104
}
105105
if got, want := len(env.ResourceHints), 1; got != want {
106-
t.Errorf("extracted annotation %q = %q, want %q - have %v", key, got, want, env)
106+
t.Errorf("extracted annotation %v = %d, want %d - have %v", key, got, want, env)
107107
}
108108
}

0 commit comments

Comments
 (0)