Skip to content

Commit 0bf5fc6

Browse files
committed
Undo temporary changes
1 parent b24cf41 commit 0bf5fc6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ check: lint test ## Check everything (lint + test).
7979

8080
.PHONY: verify-fmt
8181
verify-fmt: fmt ## Verify go code is formatted.
82-
exit 0
82+
@if !(git diff --quiet HEAD); then \
83+
echo "unformatted files detected, please run 'make fmt'"; exit 1; \
84+
fi
8385

8486
.PHONY: verify-modules
8587
verify-modules: modules ## Verify go module files are up to date.
@@ -131,7 +133,7 @@ mocks: $(MOCKGEN)
131133
# generate mocks
132134
@go mod download
133135
@for service in $(MOCK_SERVICES); do \
134-
INTERFACES=`go doc -all github.com/stackitcloud/stackit-sdk-go/services/$$service | grep '^type Api.* interface' | sed -n 's/^type \(.*\) interface.*/\1/p' | gpaste -sd,`,DefaultApi; \
136+
INTERFACES=`go doc -all github.com/stackitcloud/stackit-sdk-go/services/$$service | grep '^type Api.* interface' | sed -n 's/^type \(.*\) interface.*/\1/p' | paste -sd,`,DefaultApi; \
135137
$(MOCKGEN) -destination ./pkg/mock/$$service/$$service.go -package $$service github.com/stackitcloud/stackit-sdk-go/services/$$service $$INTERFACES; \
136138
done
137139
@$(MOCKGEN) -destination ./pkg/stackit/iaas_mock.go -package stackit ./pkg/stackit IaasClient

0 commit comments

Comments
 (0)