Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit d9db0ed

Browse files
committed
Fix find recursion in examples discovery
The find command that discovers example directories recurses into subdirectories. Adding -maxdepth 0 prevents this. Without the fix, any example with a subdirectory would be treated as a separate example, breaking the build.
1 parent b0528aa commit d9db0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else
2424
endif
2525

2626
SOURCE_FILES := $(shell find $(SRC_DIR) -name *.pony)
27-
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -type d))
27+
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -maxdepth 0 -type d))
2828
EXAMPLES_SOURCE_FILES := $(shell find $(EXAMPLES_DIR) -name *.pony)
2929
EXAMPLES_BINARIES := $(addprefix $(BUILD_DIR)/,$(EXAMPLES))
3030

0 commit comments

Comments
 (0)