You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lo...@apache.org on 2022/11/15 20:49:33 UTC

[beam] branch master updated: Update automation to use Go 1.19 (#24175)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f98db2008a9 Update automation to use Go 1.19 (#24175)
f98db2008a9 is described below

commit f98db2008a97f4546d036ddf0dddfee8c87eb58a
Author: Robert Burke <lo...@users.noreply.github.com>
AuthorDate: Tue Nov 15 12:49:23 2022 -0800

    Update automation to use Go 1.19 (#24175)
    
    Co-authored-by: lostluck <13...@users.noreply.github.com>
---
 .github/actions/setup-default-test-properties/test-properties.json    | 2 +-
 .github/workflows/build_playground_backend.yml                        | 2 +-
 .github/workflows/go_tests.yml                                        | 2 +-
 .github/workflows/local_env_tests.yml                                 | 4 ++--
 .../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy    | 2 +-
 release/go-licenses/Dockerfile                                        | 2 +-
 sdks/go/run_with_go_version.sh                                        | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/actions/setup-default-test-properties/test-properties.json b/.github/actions/setup-default-test-properties/test-properties.json
index 1df5f8dc48a..f2e1dce9922 100644
--- a/.github/actions/setup-default-test-properties/test-properties.json
+++ b/.github/actions/setup-default-test-properties/test-properties.json
@@ -18,6 +18,6 @@
     "SPARK_VERSIONS": ["2", "3"]
   },
   "GoTestProperties": {
-    "SUPPORTED_VERSIONS": ["1.18"]
+    "SUPPORTED_VERSIONS": ["1.19"]
   }
 }
diff --git a/.github/workflows/build_playground_backend.yml b/.github/workflows/build_playground_backend.yml
index fad16b3cd5f..f9c161c934d 100644
--- a/.github/workflows/build_playground_backend.yml
+++ b/.github/workflows/build_playground_backend.yml
@@ -34,7 +34,7 @@ jobs:
     name: Build Playground Backend App
     runs-on: ubuntu-latest
     env:
-      GO_VERSION: 1.18.0
+      GO_VERSION: 1.19.3
       BEAM_VERSION: 2.40.0
       TERRAFORM_VERSION: 1.0.9
       STAND_SUFFIX: ''
diff --git a/.github/workflows/go_tests.yml b/.github/workflows/go_tests.yml
index 8ee8110ad41..ce9fd5e9a34 100644
--- a/.github/workflows/go_tests.yml
+++ b/.github/workflows/go_tests.yml
@@ -44,7 +44,7 @@ jobs:
           fetch-depth: 2
       - uses: actions/setup-go@v3
         with:
-          go-version: '1.18'
+          go-version: '1.19'
       - name: Delete old coverage
         run: "cd sdks/go/pkg && rm -rf .coverage || :"
       - name: Run coverage
diff --git a/.github/workflows/local_env_tests.yml b/.github/workflows/local_env_tests.yml
index 1c120f809df..9c0be264819 100644
--- a/.github/workflows/local_env_tests.yml
+++ b/.github/workflows/local_env_tests.yml
@@ -42,7 +42,7 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
         with:
-          go-version: '1.18'
+          go-version: '1.19'
       - name: "Installing local env dependencies"
         run: "sudo ./local-env-setup.sh"
         id: local_env_install_ubuntu
@@ -57,7 +57,7 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
         with:
-          go-version: '1.18'
+          go-version: '1.19'
       - name: "Installing local env dependencies"
         run: "./local-env-setup.sh"
         id: local_env_install_mac
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 6aa2e4859c5..4c510b4dda2 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -1972,7 +1972,7 @@ class BeamModulePlugin implements Plugin<Project> {
       def goRootDir = "${project.rootDir}/sdks/go"
 
       // This sets the whole project Go version.
-      project.ext.goVersion = "go1.18.1"
+      project.ext.goVersion = "go1.19.3"
 
       // 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 035055a9224..4773643ca03 100644
--- a/release/go-licenses/Dockerfile
+++ b/release/go-licenses/Dockerfile
@@ -16,7 +16,7 @@
 # limitations under the License.
 ###############################################################################
 
-FROM golang:1.18-bullseye
+FROM golang:1.19-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 1d8589a82cd..5331a178209 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.18.1
+GOVERS=go1.19.3
 
 if ! command -v go &> /dev/null
 then