Skip to content

Commit

Permalink
attempt to bypass weird ci heisenbug
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Apr 15, 2021
1 parent 0b9456d commit afd84e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ vet-go:
go vet ./cmd/... ./internal/... ./pkg/...

fmt-go:
go fmt -x ./cmd/... ./internal/... ./pkg/...
# This uses "|| true" to swallow errors because for some reason this command
# started randomly failing when run inside GitHub Actions. It still formats
# all files successfully but then sometimes exits with a status of 1 (this
# started on April 14th, 2021). I don't know why this happens and don't know
# how to fix it. I'm just swallowing this error for now to move past this.
go fmt ./cmd/... ./internal/... ./pkg/... || true

no-filepath:
@! grep --color --include '*.go' -r '"path/filepath"' cmd internal pkg || ( \
Expand Down

0 comments on commit afd84e4

Please sign in to comment.