diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-13 18:26:19 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-13 18:26:19 +0200 |
| commit | 1be322b71ef7ff19cff6e35551c1a1cc240ca52d (patch) | |
| tree | c5d7e95f762cc516cb4b450b33a22d8e7deced14 /docs/superpowers/plans | |
| parent | 8c14667b6377e643bd1e6d630e9d12bccf6660d3 (diff) | |
| download | mkhintfile-1be322b71ef7ff19cff6e35551c1a1cc240ca52d.tar.gz mkhintfile-1be322b71ef7ff19cff6e35551c1a1cc240ca52d.zip | |
fix: quote nvchecker section names containing non-bare-key chars
Section names with '.', '-', etc. must be TOML-quoted (e.g. ["yt-dlp"]),
otherwise nvchecker fails to parse them. add_nvchecker_section wrote bare
[pkg] headers, so such names had to be hand-quoted. Worse, _has_nvchecker_section
only matched the bare form, so already-present quoted sections were reported as
missing and re-flagged for populate on every 'mkhint -C' run.
Add _nvchecker_label helper as the single source of truth for the written
label (bare iff name matches ^[A-Za-z0-9_]+$, else double-quoted), used by
both the write side (3 section headers + messages) and the read side
(_has_nvchecker_section grep, with regex metachars escaped so '.' is literal).
Tests T32-T34 cover quoted-header write, no-duplicate on re---new, and
--check recognizing an existing quoted section.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/plans')
0 files changed, 0 insertions, 0 deletions
