Skip to content

Commit ac21c66

Browse files
Copilotphlax
andcommitted
Fix configgen.sh to handle all example repository names
Updated sed pattern from 's/.*examples[^/]*\///g' to 's/.*example[^/]*\///g' to match both: - envoy_examples (plural) - envoy_example_wasm_cc (singular) This fixes the docs build genrule failure in envoy_examples where files from envoy_example_wasm_cc repository weren't being processed correctly. The pattern now matches "example" (with or without 's') followed by any non-slash characters and a slash, working in both WORKSPACE and bzlmod modes. Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
1 parent f294288 commit ac21c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configs/configgen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ for FILE in "$@"; do
3030
;;
3131
*)
3232

33-
FILENAME="$(echo "$FILE" | sed -e 's/.*examples[^/]*\///g')"
33+
FILENAME="$(echo "$FILE" | sed -e 's/.*example[^/]*\///g')"
3434
# Configuration filenames may conflict. To avoid this we use the full path.
3535
cp "$FILE" "$OUT_DIR/${FILENAME//\//_}"
3636
;;

0 commit comments

Comments
 (0)