From 3da1665bfe8ac791f444126d87d3277cf16cf4ff Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 17 Oct 2023 15:07:39 -0300 Subject: [PATCH] Setup go before running go mod edit This runs on top of ubuntu-latest, which comes with go1.18 That version of go fails to execute "go mod edit -go 1.x.y" It expects the edit to be "-go 1.x" We need go 1.20 or later to do the edit -.- --- .github/workflows/qa-azure.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qa-azure.yaml b/.github/workflows/qa-azure.yaml index c0218dc2d..aa5055e14 100644 --- a/.github/workflows/qa-azure.yaml +++ b/.github/workflows/qa-azure.yaml @@ -20,9 +20,12 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 - # This step is a workaround because vulnerability checker requires Go 1.21.3 which is not yet available on the archive. + # The following two steps are a workaround because vulnerability checker requires Go 1.21.3 which is not yet available on the archive. # That requirement only affects test code using mocks, so we don't yet depend on such contracts. # We should be safe with Go 1.21.1 for a while, until dependencies start to rely on the latest version. + - uses: actions/setup-go@v4 + with: + go-version-file: go.work - name: Constrain go version shell: bash working-directory: wsl-pro-service