Skip to content

Commit

Permalink
Fix go get usage for go 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <[email protected]>
  • Loading branch information
Zensey committed Jul 29, 2024
1 parent 6c0a604 commit 0eb1181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
run: |
source env.sh
unset CI # workaround for "PackageAndroid" target
sudo -E go run mage.go -v ${{ matrix.platform }}
go run mage.go -v ${{ matrix.platform }}
build-swagger:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion ci/packages/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ func PackageDockerSwaggerRedoc() error {
}

func goGet(pkg string) error {
return sh.RunWith(map[string]string{"GO111MODULE": "off"}, "go", "get", "-u", pkg)
// don't use GO111MODULE=off with Go 1.22, as it's not supported
return sh.Run("go", "get", "-u", pkg)
}

func packageStandalone(binaryPath, os, arch string, extraEnvs map[string]string) error {
Expand Down

0 comments on commit 0eb1181

Please sign in to comment.