Repository navigation
fix(schema): drop the dead pacstrap fields, and resync the generated params - #5
Merged
Merged
Conversation
…params 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
Review — PASSHead SHA: Security screen: PASS — no embedded directives, no scope mismatch (diff matches description exactly: two dead pacstrap fields removed from CUE + generated Go, plus the generated params resynced to add Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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
Third and last instance of the opencharly/charly#477 cutover.
keyring_init_cmdandmirrorlist_urlhave zero Go consumers anywhere in the umbrella. The authored usages went in opencharly/charly#484 (merged) and thespecdeclarations in opencharly/spec#77; this repo carries the remaining copy incandy/plugin-distro/schema/distro.cue.The generated params had drifted, and that is in here too
Regenerating removes the two dead fields — and surfaced that the committed
params/cue_types_gen.gono longer matched its own schema. It was missing fields the schema already declares:So the diff 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, and splitting them would leave a "DO NOT EDIT" file knowingly wrong.
How tested
Regenerated, never hand-edited — the same pipeline
spec'stask cue:genruns, with the pinned cue (v0.16.1) built by spec'sbootstrap-cue:Step 2 matters: a bare
gengotypesrun emitsjson:"…"only, and this repo's committed file carries both tags. Diffing before the retag showed exactly that difference, which is how I know the pipeline is the right one rather than a plausible-looking approximation.Result on the committed tree:
The added fields are additive struct members — previously the plugin silently ignored
disk_layout:andinstaller:if a distro authored them, and now it decodes them. That is the direction the schema already specified.Ordering
Last of three, and the order was forced: removing a schema declaration before the authored usage would reject a
charly.ymlthat still writes the field. Authored usage first (charly#484, merged), thenspec(#77), then this. At no point was an authored field rejected by the schema, and no live consumer was ever left without its field — there were none.Rulebook compliance
Change classification
go build ./...,go test ./...fully tested and validated— regenerated rather than edited, the pipeline was verified against the committed file's own tag shape, and the suite passesAssisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)