File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ check: lint test ## Check everything (lint + test).
7979
8080.PHONY : verify-fmt
8181verify-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
8587verify-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
You can’t perform that action at this time.
0 commit comments