diff --git a/.github/actions/install_smithy_dafny_codegen_dependencies/action.yml b/.github/actions/install_smithy_dafny_codegen_dependencies/action.yml index 170d87d61..79e52b2e8 100644 --- a/.github/actions/install_smithy_dafny_codegen_dependencies/action.yml +++ b/.github/actions/install_smithy_dafny_codegen_dependencies/action.yml @@ -30,6 +30,16 @@ runs: python -m pip install --upgrade black python -m pip install --upgrade docformatter + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: "1.23" + + - name: Install Go imports + shell: bash + run: | + go install golang.org/x/tools/cmd/goimports@latest + # Without this the if-dafny-at-least command includes "Downloading ..." output - name: Arbitrary makefile target to force downloading Gradle shell: bash diff --git a/.github/workflows/ci_codegen.yml b/.github/workflows/ci_codegen.yml index 0b6e55f68..43856d3a7 100644 --- a/.github/workflows/ci_codegen.yml +++ b/.github/workflows/ci_codegen.yml @@ -54,10 +54,6 @@ jobs: with: go-version: ${{ matrix.go-version }} - - name: Install Go imports - run: | - go install golang.org/x/tools/cmd/goimports@latest - - name: Create temporary global.json run: echo '{"sdk":{"rollForward":"latestFeature","version":"6.0.0"}}' > ./global.json diff --git a/.github/workflows/ci_test_go.yml b/.github/workflows/ci_test_go.yml index f1489cf7b..3cb97b7c6 100644 --- a/.github/workflows/ci_test_go.yml +++ b/.github/workflows/ci_test_go.yml @@ -95,10 +95,6 @@ jobs: with: go-version: ${{ matrix.go-version }} - - name: Install Go imports - run: | - go install golang.org/x/tools/cmd/goimports@latest - - uses: actions/checkout@v3 - name: Init Submodules shell: bash @@ -109,11 +105,6 @@ jobs: - name: Install Smithy-Dafny codegen dependencies uses: ./.github/actions/install_smithy_dafny_codegen_dependencies - - name: Install Go imports - shell: bash - run: | - go install golang.org/x/tools/cmd/goimports@latest - - name: Build ${{ matrix.library }} implementation shell: bash working-directory: ./${{ matrix.library }} diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 294227cc9..adf530554 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -52,15 +52,6 @@ jobs: with: dafny-version: ${{ needs.get-dafny-version.outputs.version }} - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23" - - - name: Install Go imports - run: | - go install golang.org/x/tools/cmd/goimports@latest - - name: Install Smithy-Dafny codegen dependencies uses: ./.github/actions/install_smithy_dafny_codegen_dependencies diff --git a/.github/workflows/library_rust_tests.yml b/.github/workflows/library_rust_tests.yml index 2b28c4964..f2ff71e9c 100644 --- a/.github/workflows/library_rust_tests.yml +++ b/.github/workflows/library_rust_tests.yml @@ -91,12 +91,6 @@ jobs: if: matrix.os == 'windows-latest' uses: ilammy/setup-nasm@v1 - # Go is needed for aws-lc-FIPS - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ">=1.18" - - name: Install Smithy-Dafny codegen dependencies uses: ./.github/actions/install_smithy_dafny_codegen_dependencies