Skip to content

Commit 1639d23

Browse files
author
Pablo Lezaeta
committed
ci: warn (not fail) for unmapped top-level module files — installer dotifies or maps them
1 parent 553963f commit 1639d23

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,15 @@ jobs:
159159
while IFS= read -r -d $'\0' f; do
160160
fname=$(basename "$f")
161161
if [[ ! "$fname" =~ $ALLOWED ]] && [[ ! "$fname" =~ ^\..+ ]]; then
162-
echo "Module $m contains root-level file that may install to \$HOME: $fname" >&2
163-
FAIL=1
162+
echo "WARNING: Module $m contains root-level file that may install to \$HOME (installer will dotify or map it): $fname" >&2
163+
# do not fail CI — installer will handle mapping or create a dotfile in $HOME
164+
WARN=1
164165
fi
165166
done < <(find "$m" -maxdepth 1 -type f -print0 || true)
166167
done
167-
if [ "$FAIL" -eq 1 ]; then
168-
echo "Top-level files detected in modules. Either move them into a .config/ tree, make them dotfiles (start with .), or ensure installer mapping handles them." >&2
169-
exit 1
168+
if [ "$WARN" -eq 1 ]; then
169+
echo "Top-level files detected in modules. The installer will dotify or map known files; consider adding a mapping if necessary." >&2
170+
fi
170171
fi
171172
- name: Cleanup
172173
run: |

0 commit comments

Comments
 (0)