Repository navigation
fix(plain): keep create compatible with foreign repomd metadata - #14
Merged
Merged
Conversation
0.7.0 made create reject an existing repomd.xml that lists data types SOW does not generate. Pigsty v4.4 and earlier built EL8/9 local repositories with repo2module and modifyrepo_c --mdtype=modules, and current Pigsty runs sow create --pigsty over those directories, relying on SOW to replace the index and retire the legacy module metadata. Such rebuilds failed with exit 6 where 0.6.1 succeeded. Restore the established create behavior: replace the index as createrepo_c does, including an index too large to inspect, and report the dropped data types as a warning on standard error and in the additive JSON dropped_metadata result field. Prune is new and destructive, so it keeps rejecting such an index and checks it again just before publication. Cover legacy modules and group metadata for create, prune rejection of module metadata, the oversized-index split, and the CLI warning and JSON field. Update the changelog, README, and create help. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 9, 2026
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
0.7.0 (at
c6cd98d) madesow createreject an existingrepomd.xmlthat lists data types SOW does not generate. That is a compatibility regression for Pigsty:repo2moduleandmodifyrepo_c --mdtype=modules(removed in Pigsty commit 3e2a2a5f).sow create --pigstydirectly over those directories (roles/repo/tasks/build.yml,roles/cache/tasks/main.yml), relying on SOW to replace the index and retire the legacy module metadata.modulesentry;c6cd98dexits 6. Because sow ships through the shared pigsty-infra repository, existing Pigsty 4.5/4.6 nodes would pick this up on their next rebuild.Change
createkeeps its established behavior (replace the index, as createrepo_c does, including an index too large to inspect) and now reports dropped data types:dropped_metadataJSON result field, omitted when nothing is dropped, so existing envelopes are unchanged.pruneis new and destructive, so it still rejects such an index; the recheck moved from sharedpreparePublicationinto prune's own flow.sow help createupdated. Matching docs change is pushed to docs: prepare complete bilingual SOW v0.7.0 documentation and release notes sow.pgsty.com#2.Verification
modules: exit 6 → 0, legacy entry replaced, warning printed, repeat run is a no-op without a warning.internal/v2/plain,internal/v2cli,qa/...;-raceon plain and v2cli; managed passfile tests that import plain.🤖 Generated with Claude Code