Skip to content

Commit

Permalink
Merge pull request metal3-io#987 from Nordix/fix-fmt-ci/feruz
Browse files Browse the repository at this point in the history
Fix non-existing fmt target usage
  • Loading branch information
metal3-io-bot authored Oct 5, 2021
2 parents 51384b4 + 7fa06b8 commit 00174d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ generate-check-local:
fmt-check: ## Run gofmt and report an error if any changes are made
./hack/gofmt.sh

.PHONY: fmt
fmt: ## Run gofmt and fix files with formatting issues
gofmt -s -w .

## --------------------------------------
## Documentation
## --------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion hack/gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "${IS_CONTAINER}" != "false" ]; then

# shellcheck disable=SC2086
if [ -n "$(gofmt -l .)" ]; then
make fmt
gofmt -s -d -e .
exit 1
fi
else
Expand Down

0 comments on commit 00174d8

Please sign in to comment.