Commit 6058baa
feat(compile): add repos_unified codemod for legacy repositories: + checkout: rewrite
Replaces the previous front-matter migration framework approach with the
codemod framework merged in #476. The new 0001_repos_unified codemod
detects the legacy repositories: + checkout: shape in raw YAML and
rewrites it in place to the unified repos: shape before typed
deserialization. Idempotent on already-current sources.
Drops the typed repositories: / checkout: fields from FrontMatter (now
#[serde(skip)] Rust-only fields populated by lower_repos); the codemod
runs first so user YAML never reaches typed deserialization with legacy
keys. resolve_repos is simplified accordingly — the codemod owns the
mixing/legacy concerns.
Updates docs/front-matter.md to point at docs/codemods.md.
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>1 parent 046775f commit 6058baa
8 files changed
Lines changed: 502 additions & 124 deletions
File tree
- docs
- src/compile
- codemods
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments