mirror of
https://gitee.com/johng/gf.git
synced 2024-11-29 18:57:44 +08:00
16 lines
230 B
Makefile
16 lines
230 B
Makefile
|
|
|
|
.PHONY: tidy
|
|
tidy:
|
|
$(eval files=$(shell find . -name go.mod))
|
|
@set -e; \
|
|
for file in ${files}; do \
|
|
goModPath=$$(dirname $$file); \
|
|
cd $$goModPath; \
|
|
go mod tidy; \
|
|
cd -; \
|
|
done
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
golangci-lint run
|