[Bug]: Local config override file name differs between the docs (`<id>-config.local.yml`) and ConfigManager (`local-config.yml`)
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 72/100
Direção de pesquisa
Leia ConfigManager._get_local_config em src/specify_cli/extensions/__init__.py e, em seguida, compare o nome de arquivo esperado com os guias de usuário, API e desenvolvimento, além do padrão de exclusão em src/specify_cli/shared_infra.py. Use o script de reprodução da issue para confirmar qual nome de arquivo se aplica; o trabalho estará concluído quando as substituições de configuração, as condições dos hooks, o comportamento de exclusão do Git e o tratamento relacionado à remoção ou recuperação corresponderem ao nome escolhido.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Bug Description
The user-facing extension docs tell users to put local overrides in .specify/extensions/<id>/<id>-config.local.yml. ConfigManager._get_local_config reads .specify/extensions/<id>/local-config.yml instead (src/specify_cli/extensions/__init__.py:5350). A user who follows the guide gets no override, both in get_config() and in hook conditions such as config.x is set. The shared .specify/.gitignore only covers extensions/*/local-config.yml (src/specify_cli/shared_infra.py:33), so the documented file is also not ignored by git, although the guide says it is.
Either side could be the one to change. The code, design/extension.md:146 and shared_infra.py:33 use local-config.yml. These say <id>-config.local.yml:
extensions/EXTENSION-USER-GUIDE.md:351,361,377,910extensions/EXTENSION-API-REFERENCE.md:565,887extensions/EXTENSION-DEVELOPMENT-GUIDE.md:388
The remove, backup and rescue code also preserves *-config.local.yml (for example __init__.py:3523-3549).
Steps to Reproduce
Save this as repro.py and run uv run python -I repro.py from the repository root.
import os, tempfile
from pathlib import Path
from specify_cli.extensions import ConfigManager
proj = Path(tempfile.mkdtemp())
d = proj / ".specify/extensions/jira"
d.mkdir(parents=True)
(d / "jira-config.yml").write_text('project:\n key: "MSATS"\n')
(d / "jira-config.local.yml").write_text('project:\n key: "MYTEST"\n')
os.environ.pop("SPECKIT_JIRA_PROJECT_KEY", None)
print("with jira-config.local.yml: project.key =", ConfigManager(proj, "jira").get_value("project.key"))
(d / "jira-config.local.yml").rename(d / "local-config.yml")
print("with local-config.yml: project.key =", ConfigManager(proj, "jira").get_value("project.key"))
Expected Behavior
Per extensions/EXTENSION-USER-GUIDE.md:359-383, jira-config.local.yml overrides jira-config.yml, so project.key is MYTEST. If local-config.yml is the intended name, the user guide, API reference and development guide should say so.
Actual Behavior
with jira-config.local.yml: project.key = MSATS
with local-config.yml: project.key = MYTEST
Specify CLI Version
1.2.4.dev0 (main at 27d14e2)
AI Agent
Not applicable
Operating System
Linux 6.18 (Ubuntu container)
Python Version
Python 3.12.3
Additional Context
The docstring of ConfigManager itself (__init__.py:5267) names local-config.yml, so the code is at least consistent with itself and with the design document.
Also reproduced on macOS (Darwin 25.6, arm64) with Python 3.14.4 and uv run python -I repro.py against 27d14e2; the output matches the above.
AI Disclosure
Found and reproduced with Claude Code (model: Claude Opus 4.8), run autonomously under human supervision. The human reporter re-ran every reproduction above before filing.
- Linguagem predominante
- Python
- Estrelas
- 144k
- Forks
- 12.9k
- Merge médio
- 1d 6h
- PRs com merge (30d)
- 194
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/spec-kit
-
The Python branch-creation port accepts an oversized `--number` and crashes at `int()` instead of rejecting itTalvez já em andamento @github-actions assumiu há 3 dias. Abertabug-assess bug-fix bug-test fix-proposed severity-low tests-passing triage-can-wait
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
github/spec-kit#5194 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: `create-new-feature.sh` rejects the feature descriptions `-n`, `-e` and `-E`, which the Python script acceptsTalvez já em andamento @WOLIKIMCHENG assumiu há 8 dias. Abertatriage-can-wait
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: `bundle init <bundle>` initialises with the default integration instead of the bundle's, then aborts with a clashTalvez já em andamento @chelsealong assumiu há 9 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: `specify preset set-priority` does not update agent command files that are already writtenTalvez já em andamento @mikamikasuki assumiu há 9 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: Extension alias conflict check misses spellings that map to the same file, so one extension overwrites and then deletes another's aliasTalvez já em andamento @chelsealong assumiu há 7 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de github/spec-kit
Issues semelhantes
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesAbertafollow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Built-in QUBO fallback applies bitwise xor to floating binary statesTalvez já em andamento @iloveeyjafjalla assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
qboson/kaiwu-pytorch-plugin#1702 ·
Mantenedores costumam responder em até 3 dias
-
bug v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
modelcontextprotocol/python-sdk#3811 ·
Mantenedores costumam responder em até 1 dia
-
cost:cheap practicality:seen-in-the-wild severity:medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
fairagro/m4.2_advanced_middleware_api#620 ·
Mantenedores costumam responder em até 1 dia