Repository navigation
fix(distro): drop the dead pacstrap fields keyring_init_cmd and mirrorlist_url - #484
Merged
Merged
Conversation
…rlist_url
Both fields have ZERO Go consumers anywhere in the umbrella — the only
occurrences are the generated cue_types_gen.go, the schema declarations, and
these authorings. They read as configuration and do nothing.
$ grep -rn 'KeyringInitCmd|MirrorlistURL' --include='*.go' .
(nothing outside generated types and tests)
The file already knew: the omarchy pacstrap block carries comments explaining
that it deliberately does NOT use either field because both are dead, and
expresses its mirror through runtime_pacman_conf instead. Two other distros went
on authoring them anyway, which is the trap — a reader adding a distro copies
arch or cachyos and inherits config that silently does nothing.
Nothing is lost by removing them:
- keyring init on the pacstrap path is done by `pacstrap -K`, which
initialises the target keyring itself, and by the bootstrap install_cmd's
own `pacman-key --init`.
- the cachyos extra_repo entries carry `siglevel: Never`, so the
F3B607488DB35A47 recv/lsign the dead field described was never load-bearing.
- mirrors reach pacman through runtime_pacman_conf's explicit `Server =`
lines, which is how omarchy already does it.
The omarchy comments are restated as description rather than as a warning about
fields that no longer exist here.
This is the first half of the cutover; the schema declarations in
opencharly/spec and opencharly/plugin-distro are removed next, in that order, so
there is never a window where an authored field is rejected by the schema.
Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
Contributor
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail changes; the diff is a pure removal of two dead config fields from Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
github-actions Bot
pushed a commit
to opencharly/plugin-distro
that referenced
this pull request
Aug 30, 2026
…params (#5) Third and last instance of the opencharly/charly#477 cutover. keyring_init_cmd and mirrorlist_url have zero Go consumers anywhere in the umbrella; the authored usages went in opencharly/charly#484 and the spec declarations in opencharly/spec#77. Regenerating the params with the pinned cue (v0.16.1, the same gengotypes + retag pipeline spec's `task cue:gen` runs) removes them — and also surfaced that the committed file had DRIFTED from its own schema. It was missing fields the schema already declares: + Disk_layout DsDiskLayout + Installer DsInstaller + (and a further block at the end of the file) So this commit is the two dead fields going out plus the generated projection catching up with its source. Both belong in the same change: a generated file that does not match its schema is not a smaller problem than the dead fields that prompted looking at it. Regenerated, never hand-edited: 1. cue exp gengotypes over schema/distro.cue headed `package params` + @go(params) 2. spec's schemagen -mode=retag to double the json tags with yaml tags 3. gofmt Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6 Co-authored-by: atrawog <[email protected]>
github-actions Bot
pushed a commit
to opencharly/spec
that referenced
this pull request
Aug 30, 2026
…orlist_url (#77) Second half of the opencharly/charly#477 cutover. The authored usages were removed in opencharly/charly#484 (merged), so nothing declares these any more and the schema can drop them. Both had ZERO Go consumers: the only occurrences of KeyringInitCmd and MirrorlistURL anywhere in the umbrella were this declaration and the types it generates. They read as configuration and did nothing — charly's own omarchy pacstrap block carried comments explaining it deliberately avoided them for exactly that reason. schema/distro.cue -- the two field declarations spec/cue_types_gen.go -- regenerated by `task cue:gen`, not hand-edited Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6 Co-authored-by: atrawog <[email protected]>
This was referenced Aug 30, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 30, 2026
…rap VM build (#493) `charly vm build` of ANY bootstrap VM has been failing since #484: charly: error: command "vm": rendering bootstrap script: template: bootstrap-script:2:9: executing "bootstrap-script" at <.Distro.Pacstrap.KeyringInitCmd>: can't evaluate field KeyringInitCmd in type *spec.Pacstrap Reproduced on arch-pacstrap and omarchy-pacstrap-vm identically — the pacstrap builder template is shared, so this is every pacstrap distro, not one of them. #484 dropped `keyring_init_cmd` and `mirrorlist_url` as dead fields. It verified they had ZERO Go consumers, and that was true. What it missed is that this one also had a TEMPLATE consumer, in charly.yml's own pacstrap builder body. Go templates resolve struct fields at RENDER time, so the reference compiled, validated, and passed every test — and then failed at `charly vm build`, which no CI gate exercises. Nothing is lost by removing it: `pacstrap -K` on the next line already initialises the target keyring, which #484's own body says is all that was ever needed. TestPacstrapBuilderTemplateFieldsExist guards the CLASS rather than this string: it reflects over spec.Pacstrap and requires every `.Distro.Pacstrap.X` interpolated anywhere in charly.yml to be a real field. A hand-kept list of allowed names would have to be updated by the same person who forgot the template, which is no guard at all. Verified: with the reference removed, arch-pacstrap renders its bootstrap script and proceeds into pacstrap (the rootfs tar runs), failing only later on a free-space precondition — which is that check working, not this defect. Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First half of the cutover for #477.
#Pacstrap.keyring_init_cmdand#Pacstrap.mirrorlist_urlhave zero Go consumers anywhere in the umbrella — the only occurrences are the generatedcue_types_gen.go, the schema declarations, and these authorings. They read as configuration and do nothing.The file already knew. The omarchy pacstrap block carries comments explaining that it deliberately does not use either field because both are dead, and routes its mirror through
runtime_pacman_confinstead. Two other distros went on authoring them anyway — which is the trap the issue describes: someone adding a distro copiesarchorcachyosand inherits configuration that silently does nothing.Nothing is lost by removing them:
pacstrap -K, which initialises the target keyring itself, and by the bootstrapinstall_cmd's ownpacman-key --init.extra_repoentries carrysiglevel: Never, so theF3B607488DB35A47recv/lsign the dead field described was never load-bearing.runtime_pacman_conf's explicitServer =lines — which is how omarchy already does it.The omarchy comments are restated as description rather than as a warning about fields that no longer exist here.
How tested
The full
charlypackage suite passes, which matters here because it includes the distro/format-config tests that render these pacstrap blocks — the render is unchanged, because the fields never reached it.Ordering (this is a cutover, not a partial change)
Removing the schema declarations first would reject a
charly.ymlthat still authors the fields. So the authored usage goes first — here — and the schema declarations inopencharly/spec(schema/distro.cue+ regeneratedcue_types_gen.go) andopencharly/plugin-distro(schema/distro.cue) follow immediately, in that order. At no point is an authored field rejected by the schema; at no point is a live consumer left without its field, because there were none.Rulebook compliance
charly box validatepasted above.Change classification
go build, fullgo test ./charly/, andcharly box validateon the committed treefully tested and validated— the removal is proved inert by the full suite that renders these blocks, and the zero-consumer claim is a pasted grep rather than an assertionAssisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)