Skip to content

Commit

Permalink
Don't Run Format Under Go 1.17
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sergiosalvatore committed Aug 3, 2022
1 parent 4270c82 commit 19ec387
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v1

- name: gofmt
if: ${{matrix.goversion == '1.19'}}
run: |
[[ -z $(gofmt -l $(find . -name '*.go') ) ]]
Expand Down

0 comments on commit 19ec387

Please sign in to comment.