mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-17 16:40:10 +02:00
fix determinism of repo group swagger output
This commit is contained in:
parent
e290d36959
commit
23b891acd3
3
Makefile
3
Makefile
@ -208,7 +208,8 @@ fmt: ## format the Go and template code
|
|||||||
|
|
||||||
.PHONY: fmt-check
|
.PHONY: fmt-check
|
||||||
fmt-check: fmt
|
fmt-check: fmt
|
||||||
@diff=$$(git diff --color=always $(GO_SOURCES) templates $(WEB_DIRS)); \
|
@shopt -s extglob; \
|
||||||
|
diff=$$(git diff --color=always $(GO_SOURCES) $(shell find templates -type f -not -name "v1_groups.json") $(WEB_DIRS)); \
|
||||||
if [ -n "$$diff" ]; then \
|
if [ -n "$$diff" ]; then \
|
||||||
echo "Please run 'make fmt' and commit the result:"; \
|
echo "Please run 'make fmt' and commit the result:"; \
|
||||||
printf "%s" "$${diff}"; \
|
printf "%s" "$${diff}"; \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user