Skip to content

Commit ecb3d23

Browse files
authored
[chore] add make tidy (#1777)
* [chore] add make tidy * Update Makefile
1 parent 2a73940 commit ecb3d23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,10 @@ update-chart-dep: dep-update ## Updates the dependency version in the Chart.yaml
210210
.PHONY: prepare-release
211211
prepare-release: ## Prepares for a new release of the helm chart. Optionally specify CHART_VERSION and APP_VERSION.
212212
ci_scripts/prepare-release.sh CREATE_BRANCH=${CREATE_BRANCH} CHART_VERSION=${CHART_VERSION} APP_VERSION=${APP_VERSION}
213+
214+
.PHONY: tidy-all
215+
tidy-all:
216+
@for dir in $$(find . -type f -name "go.mod" -exec dirname {} \; | sort | egrep '^./'); do \
217+
echo "Running go mod tidy in $$dir"; \
218+
(cd "$$dir" && rm -f go.sum && go mod tidy); \
219+
done

0 commit comments

Comments
 (0)