Skip to content

Commit

Permalink
Setup go before running go mod edit
Browse files Browse the repository at this point in the history
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 -.-
  • Loading branch information
CarlosNihelton committed Oct 17, 2023
1 parent 602fb3e commit 3da1665
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/qa-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3da1665

Please sign in to comment.