make-testargs-dollar-escaping
Use when a CI acceptance job running `make testacc` fails with 'Syntax error: Unterminated quoted string', or a -run pattern ending in `$` passes through…
от coralogix★ 22 звезды на GitHub
Установить make-testargs-dollar-escaping в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
A $ in a make variable must be doubled
Trigger: A job passes a -run pattern through make testacc "TESTARGS=-run '<pattern>'", and the pattern contains $. The log shows the command without the end of the pattern and /bin/sh: 1: Syntax error: Unterminated quoted string.
Fix: Pass the pattern in an env var, and double every $ before it reaches make:
env:
RUN_PATTERN: ${{ matrix.pattern }}
run: make testacc "TESTARGS=-run '${RUN_PATTERN//\$/\$\$}'"
Check the result with make -n testacc "TESTARGS=...". A pattern checked with go test directly does not prove that it works through make.
Why: make expands $x in a variable value. In '^TestX$', it reads $' as an empty variable, so the closing quote disappears. $$ reaches the shell as one $.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл make-testargs-dollar-escaping?
Use when a CI acceptance job running `make testacc` fails with 'Syntax error: Unterminated quoted string', or a -run pattern ending in `$` passes through TESTARGS. Double each `$` for make.
Как установить скилл make-testargs-dollar-escaping?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл make-testargs-dollar-escaping запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…