chore: fix go 1.18 dep problem (#3149)

This commit is contained in:
Kevin Wan
2023-04-21 01:01:17 +08:00
committed by GitHub
parent bf905eaff3
commit 0a46ad7ac1
3 changed files with 9 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: 1.18
check-latest: true
cache: true
id: go
@@ -30,11 +30,6 @@ jobs:
run: |
go vet -stdmethods=false $(go list ./...)
if ! test -z "$(gofmt -l .)"; then
echo "Please run 'gofmt -l -w .'"
exit 1
fi
go mod tidy
if ! test -z "$(git status --porcelain)"; then
echo "Please run 'go mod tidy'"