Skip to content

Commit 7ee74d2

Browse files
authored
[Go SDK] Update beam infra to Go 1.20.2 (#26054)
Co-authored-by: lostluck <13907733+lostluck@users.noreply.github.com>
1 parent ed56190 commit 7ee74d2

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/actions/setup-self-hosted-action/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ inputs:
3434
required: false
3535
description: 'Set as false if does not require java-8 setup'
3636
default: 'true'
37-
requires-go-19:
37+
requires-go:
3838
required: false
39-
description: 'Set as false if does not require go-19 setup'
39+
description: 'Set as false if does not require go setup'
4040
default: 'true'
4141

4242
runs:
@@ -64,7 +64,7 @@ runs:
6464
distribution: 'temurin'
6565
java-version: 8
6666
- name: Set Go Version
67-
if: ${{ inputs.requires-go-19 == 'true' }}
67+
if: ${{ inputs.requires-go == 'true' }}
6868
uses: actions/setup-go@v3
6969
with:
70-
go-version: '1.19.0'
70+
go-version: '1.20' # never set patch, to get latest patch releases.

.github/workflows/local_env_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@v3
4444
- uses: actions/setup-go@v3
4545
with:
46-
go-version: '1.19'
46+
go-version: '1.20'
4747
- uses: actions/setup-python@v4
4848
with:
4949
python-version: '3.8'
@@ -61,7 +61,7 @@ jobs:
6161
- uses: actions/checkout@v3
6262
- uses: actions/setup-go@v3
6363
with:
64-
go-version: '1.19'
64+
go-version: '1.20'
6565
- uses: actions/setup-python@v4
6666
with:
6767
python-version: '3.8'

.github/workflows/python_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
- name: Install go
180180
uses: actions/setup-go@v3
181181
with:
182-
go-version: '1.19'
182+
go-version: '1.20'
183183
- name: Download source from artifacts
184184
uses: actions/download-artifact@v3
185185
with:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ class BeamModulePlugin implements Plugin<Project> {
20772077
def goRootDir = "${project.rootDir}/sdks/go"
20782078

20792079
// This sets the whole project Go version.
2080-
project.ext.goVersion = "go1.19.6"
2080+
project.ext.goVersion = "go1.20.2"
20812081

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

release/go-licenses/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
###############################################################################
1818

19-
FROM golang:1.19-bullseye
19+
FROM golang:1.20-bullseye
2020

2121
WORKDIR /usr/src/app
2222
COPY go.mod ./

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.19.3
40+
GOVERS=go1.20.2
4141

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

0 commit comments

Comments
 (0)