Fix josh-proxy rejecting stored filter path with slash

Josh-proxy's parser treats "/" in :+ paths as a filter separator,
so :+.josh-filters/backend fails. Use flat naming at repo root:
.josh-filter-<target>.josh referenced as :+.josh-filter-<target>.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 09:47:16 +03:00
parent 187a9ead14
commit 5929585d6c
4 changed files with 15 additions and 13 deletions

View File

@@ -431,7 +431,7 @@ cmd_preflight() {
echo "4. Exclude filter files"
while IFS= read -r target_name; do
local filter_file=".josh-filters/${target_name}.josh"
local filter_file=".josh-filter-${target_name}.josh"
if [ -f "$filter_file" ]; then
if git ls-files --error-unmatch "$filter_file" >/dev/null 2>&1; then
pass "${filter_file} exists and is tracked"