Skip to content

Commit

Permalink
Add Go bin to path, remove patch version from go mod command
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Feb 13, 2024
1 parent 39503cd commit fe14c9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,20 @@ jobs:
wget https://go.dev/dl/go${{ matrix.go }}.linux-amd64.tar.gz
tar -C /usr/local -xzf go${{ matrix.go }}.linux-amd64.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Install client dependencies
working-directory: ./go
run: make install-tools

- name: Build client
working-directory: ./go
# The go mod edit command sets the Go version in the go.mod file.
# For Go 1.18, the command does not allow specifying a patch version.
run: |
go mod edit -go ${{ matrix.go }}
FULL_VERSION=${{ matrix.go }}
MOD_VERSION=${FULL_VERSION%.*}
go mod edit -go $MOD_VERSION
make build
- name: Run linters
Expand Down

0 comments on commit fe14c9e

Please sign in to comment.