From 969cb611995d76f95c31f5c136ff17713711e0df Mon Sep 17 00:00:00 2001 From: lostluck <13907733+lostluck@users.noreply.github.com> Date: Tue, 15 Nov 2022 08:50:28 -0800 Subject: [PATCH] Update automation to use Go 1.19 --- .../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 ++-- .../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 1df5f8dc48a8..f2e1dce9922d 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 c9e705d24c98..740aa44a06fe 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 8ee8110ad417..ce9fd5e9a345 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 1c120f809df0..9c0be264819c 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 6aa2e4859c59..4c510b4dda2a 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 { 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 035055a9224e..4773643ca035 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 1d8589a82cd1..5331a1782093 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