mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
github+Makefile: add new action make tidy-module-check
This commit adds `tidy-module` and `tidy-module-check` to make sure the modules are always tidy.
This commit is contained in:
7
Makefile
7
Makefile
@@ -246,6 +246,13 @@ lint: docker-tools
|
||||
@$(call print, "Linting source.")
|
||||
$(DOCKER_TOOLS) golangci-lint run -v $(LINT_WORKERS)
|
||||
|
||||
tidy-module:
|
||||
echo "Running 'go mod tidy' for all modules"
|
||||
scripts/tidy_modules.sh
|
||||
|
||||
tidy-module-check: tidy-module
|
||||
if test -n "$$(git status --porcelain)"; then echo "modules not updated, please run `make tidy-module` again!"; git status; exit 1; fi
|
||||
|
||||
list:
|
||||
@$(call print, "Listing commands.")
|
||||
@$(MAKE) -qp | \
|
||||
|
Reference in New Issue
Block a user