Skip to content

Commit d34fc57

Browse files
committed
#1353 Mark possible locations where spaces in path may break make targets
Here the same problem may occure as for the npm-ci-all target: Make can't deal with spaces in paths. If one has the repo cloned to a location with spaces in the file name the lop breaks bekause of it's word splitting nature. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent afce86a commit d34fc57

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ npm-test-all: ## Runs all Jest based test suites.
1818
.PHONY: test-all
1919
test-all: install-operator install-sdks ## Runs all makefile based test suites (unit + integration Tests).
2020
@echo "Running make test for all scanner and hook modules..."
21+
#1353 This will break if one has spaces in the path from $(PROJECT_DIR)
2122
@for dir in $(SCANNERS_TEST_LIST) $(HOOKS_TEST_LIST); do \
2223
echo "🧪 Test Suite for $${dir}" && cd $$(dirname $$dir) && $(MAKE) -s test || exit 1; \
2324
done
@@ -39,12 +40,14 @@ readme: ## Generate README.md based on Chart.yaml and template.
3940

4041
.PHONY: hook-docs
4142
hook-docs: ## Generate documentation for hooks.
43+
#1353 This will break if one has spaces in the path from $(PROJECT_DIR)
4244
@for chart in $(HOOKS_CHART_LIST); do \
4345
$(BIN_DIR)/generate-helm-docs.sh --hook $${chart} $(HELM_DOCS_DIR); \
4446
done
4547

4648
.PHONY: scanner-docs
4749
scanner-docs: ## Generate documentation for scanners.
50+
#1353 This will break if one has spaces in the path from $(PROJECT_DIR)
4851
@for chart in $(SCANNERS_CHART_LIST); do \
4952
$(BIN_DIR)/generate-helm-docs.sh --scanner $${chart} $(HELM_DOCS_DIR); \
5053
done
@@ -59,6 +62,7 @@ auto-discovery-docs: ## Generate documentation for the auto-discovery.
5962

6063
.PHONY: demo-target-docs
6164
demo-target-docs: ## Generate documentation for demo targets.
65+
#1353 This will break if one has spaces in the path from $(PROJECT_DIR)
6266
@for chart in $(DEMO_TARGETS_CHART_LIST); do \
6367
$(BIN_DIR)/generate-helm-docs.sh --demo-target $${chart} $(HELM_DOCS_DIR); \
6468
done

0 commit comments

Comments
 (0)