Repository navigation
Adopt swift-cidr 0.9.0 and preserve network endpoint prefixes - #2
Merged
Merged
Conversation
Migrate to CIDRForm and Swift 6.2, align release tooling and notices, and retain each selected boundary address's input prefix in JSON. Reject equal, canonically equivalent, contained, and mixed-family network pairs before rendering any summary. Cover IPv4 and IPv6 endpoints, reversed inputs, and validation errors. Validation: 22 Debug tests, 22 Release tests, and 230 CLI checks passed. (cherry picked from commit 15aae0c)
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.
Upgrade cidrwalk to swift-cidr 0.9.x and
CIDRForm, with Swift 6.2 as the minimum toolchain. Align CI, release checks, notices, and documentation with the dependency.Network summaries select the lowest first address and highest last address while retaining each boundary's input prefix. For example,
10.0.0.0/24and10.0.2.0/25produce boundaries10.0.0.0/24and10.0.2.127/25. Equal, canonically equivalent, contained, and mixed-family pairs are rejected before output. Reversing valid inputs preserves the boundaries and summary prefixes; JSON retains the original input order.Validation of the reviewed content:
005e73fhas the exact tree and patch of reviewed commit15aae0c; local tests were not repeated for the identical reapplication. GitHub CI will validate the new PR head.This reapplies
15aae0cafter signed reverta6bcc57restored the prior main tree, so the change can go through PR review without rewriting history.