This is an automated email from the ASF dual-hosted git repository.

lostluck pushed a commit to branch updateGo120
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 8539ccbbe01c1b07c77d5841cf02d6fe37dc6c5b
Author: lostluck <[email protected]>
AuthorDate: Fri Mar 31 10:40:10 2023 -0700

    [Go SDK] Update beam infra to Go 1.20.2
---
 .github/actions/setup-self-hosted-action/action.yml               | 8 ++++----
 .github/workflows/local_env_tests.yml                             | 4 ++--
 .github/workflows/python_tests.yml                                | 2 +-
 .../main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy    | 2 +-
 release/go-licenses/Dockerfile                                    | 2 +-
 sdks/go/run_with_go_version.sh                                    | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/actions/setup-self-hosted-action/action.yml 
b/.github/actions/setup-self-hosted-action/action.yml
index 430a7e1d828..0e7cc8534e9 100644
--- a/.github/actions/setup-self-hosted-action/action.yml
+++ b/.github/actions/setup-self-hosted-action/action.yml
@@ -34,9 +34,9 @@ inputs:
     required: false
     description: 'Set as false if does not require java-8 setup'
     default: 'true'
-  requires-go-19:
+  requires-go:
     required: false
-    description: 'Set as false if does not require go-19 setup'
+    description: 'Set as false if does not require go setup'
     default: 'true'
 
 runs:
@@ -64,7 +64,7 @@ runs:
         distribution: 'temurin'
         java-version: 8
     - name: Set Go Version
-      if: ${{ inputs.requires-go-19 == 'true'  }}
+      if: ${{ inputs.requires-go == 'true'  }}
       uses: actions/setup-go@v3
       with:
-        go-version: '1.19.0'
+        go-version: '1.20' # never set patch, to get latest patch releases.
diff --git a/.github/workflows/local_env_tests.yml 
b/.github/workflows/local_env_tests.yml
index 32edd5e5a2f..ffc6946334f 100644
--- a/.github/workflows/local_env_tests.yml
+++ b/.github/workflows/local_env_tests.yml
@@ -43,7 +43,7 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
         with:
-          go-version: '1.19'
+          go-version: '1.20'
       - uses: actions/setup-python@v4
         with:
           python-version: '3.8'
@@ -61,7 +61,7 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
         with:
-          go-version: '1.19'
+          go-version: '1.20'
       - uses: actions/setup-python@v4
         with:
           python-version: '3.8'
diff --git a/.github/workflows/python_tests.yml 
b/.github/workflows/python_tests.yml
index c8eae74699d..91f26bb3e92 100644
--- a/.github/workflows/python_tests.yml
+++ b/.github/workflows/python_tests.yml
@@ -179,7 +179,7 @@ jobs:
       - name: Install go
         uses: actions/setup-go@v3
         with:
-          go-version: '1.19'
+          go-version: '1.20'
       - name: Download source from artifacts
         uses: actions/download-artifact@v3
         with:
diff --git 
a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy 
b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 6663207fba7..5cd5f3c8142 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -2077,7 +2077,7 @@ class BeamModulePlugin implements Plugin<Project> {
       def goRootDir = "${project.rootDir}/sdks/go"
 
       // This sets the whole project Go version.
-      project.ext.goVersion = "go1.19.6"
+      project.ext.goVersion = "go1.20.2"
 
       // Minor TODO: Figure out if we can pull out the GOCMD env variable 
after goPrepare script
       // completion, and avoid this GOBIN substitution.
diff --git a/release/go-licenses/Dockerfile b/release/go-licenses/Dockerfile
index 4773643ca03..7008454ea6a 100644
--- a/release/go-licenses/Dockerfile
+++ b/release/go-licenses/Dockerfile
@@ -16,7 +16,7 @@
 # limitations under the License.
 ###############################################################################
 
-FROM golang:1.19-bullseye
+FROM golang:1.20-bullseye
 
 WORKDIR /usr/src/app
 COPY go.mod ./
diff --git a/sdks/go/run_with_go_version.sh b/sdks/go/run_with_go_version.sh
index 5331a178209..911c4d266a1 100755
--- a/sdks/go/run_with_go_version.sh
+++ b/sdks/go/run_with_go_version.sh
@@ -37,7 +37,7 @@ set -e
 #
 # This variable is also used as the execution command downscript.
 # The list of downloadable versions are at https://go.dev/dl/ 
-GOVERS=go1.19.3
+GOVERS=go1.20.2
 
 if ! command -v go &> /dev/null
 then

Reply via email to