fix(model-profiles): use posix-compatible substitution in makefile (#35957)

The `refresh_model_profiles` CI workflow has been failing daily since
the `refresh-profiles` Makefile target was added. `make` runs recipes
with `/bin/sh`, which is dash on Ubuntu CI runners — and
`${var//pattern/replacement}` is a bash-only construct that dash rejects
with `Bad substitution`.

## Changes
- Replace bash-ism `$${partner//-/_}` with POSIX-compatible `$$(echo
"$${partner}" | tr '-' '_')` in the `refresh-profiles` target's
`data_dir` construction
This commit is contained in:
Mason Daugherty
2026-03-16 10:50:33 -04:00
committed by GitHub
parent 5c6fa28192
commit 32db242227

View File

@@ -30,7 +30,7 @@ refresh-profiles:
@for entry in $(PROFILE_PROVIDERS); do \
partner=$${entry%%=*}; \
provider=$${entry##*=}; \
data_dir="../partners/$${partner}/langchain_$${partner//-/_}/data"; \
data_dir="../partners/$${partner}/langchain_$$(echo "$${partner}" | tr '-' '_')/data"; \
echo "--- Refreshing $${partner} (provider: $${provider}) ---"; \
echo y | UV_FROZEN=false uv run langchain-profiles refresh \
--provider "$${provider}" \