You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dead-distro-fields: mirrorlist_url and keyring_init_cmd have zero consumers #477
That reads as configuration and does nothing. Anyone adding a distro copies it — which is
exactly what nearly happened in #476, where the omarchy entity's mirror pin
and packaging key looked like a textbook use for both fields. They are instead expressed
through runtime_pacman_conf and a pacman-key step in a candy, with a comment recording
why. A field that looks like the right answer and silently isn't is worse than no field.
Exit
Either wire them (a mirrorlist writer at pacstrap time; a keyring init before the first
transaction) or delete them. Deleting is an authored-wire-key removal, so it needs a #SchemaVersion bump plus a remove_key migration op — the same shape as the stripCandyLibvirtField and stripDeployShellOverlay cutovers already recorded in version.cue.
Whichever way it goes, cachyos's two authored values must be migrated in the same pass:
its keyring init currently relies on pacstrap -K doing the job instead, and its mirrorlist
on the [cachyos]extra_repo servers.
Scope
spec/schema/distro.cue — the two fields
spec/schema/migrations.cue + plugin-migrate — the removal ops, if deleting
charly/charly/charly.yml — the cachyos entity's two authored values
Raised from #476 (the omarchy distro entity), where using them was
considered and rejected on this evidence.
Ordering was forced: removing a declaration before its authored usage would reject a charly.yml that still writes the field. Authored usage first, then the two schemas. At no point was an authored field rejected, and no live consumer was left without its field — there were none, which is the whole point.
The zero-consumer claim held up at every step, and charly's own omarchy pacstrap block already carried comments explaining it deliberately avoided both fields because they were dead — that comment is gone too, since there is nothing left to warn about.
One thing found on the way, fixed in the same cutover rather than filed: regenerating plugin-distro's params showed the committed cue_types_gen.go had drifted from its own schema — it was missing disk_layout and installer, which the schema already declared. So the plugin was silently ignoring those fields if a distro authored them. Resynced in #5.
Activity
fix(schema): drop the dead pacstrap fields, and resync the generated …
fix(schema): drop the dead #Pacstrap fields keyring_init_cmd and mirr…
atrawog commentedon Aug 30, 2026
Done — all three instances merged.
opencharly/charlyopencharly/spec#Pacstrapdeclarations + regeneratedcue_types_gen.goopencharly/plugin-distroOrdering was forced: removing a declaration before its authored usage would reject a
charly.ymlthat still writes the field. Authored usage first, then the two schemas. At no point was an authored field rejected, and no live consumer was left without its field — there were none, which is the whole point.The zero-consumer claim held up at every step, and charly's own omarchy pacstrap block already carried comments explaining it deliberately avoided both fields because they were dead — that comment is gone too, since there is nothing left to warn about.
One thing found on the way, fixed in the same cutover rather than filed: regenerating plugin-distro's params showed the committed
cue_types_gen.gohad drifted from its own schema — it was missingdisk_layoutandinstaller, which the schema already declared. So the plugin was silently ignoring those fields if a distro authored them. Resynced in #5.