From 19ec387c25b3effdc8189d695d1ec245f597858a Mon Sep 17 00:00:00 2001 From: Sergio Salvatore Date: Wed, 3 Aug 2022 08:51:25 -0400 Subject: [PATCH] Don't Run Format Under Go 1.17 gofmt is not aware of build tags and will choke on 1.18+ syntax. Instead, just focus the format checks on the latest version of go. --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bbee5e51..b79219d9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v1 - name: gofmt + if: ${{matrix.goversion == '1.19'}} run: | [[ -z $(gofmt -l $(find . -name '*.go') ) ]]