Skip to content

packer: custom SwiftVersion parser - #303

Merged
kabiroberai merged 1 commit into
mainfrom
custom-swiftversion
Oct 6, 2026
Merged

kabiroberai merged 1 commit into
mainfrom
custom-swiftversion

Conversation

@kabiroberai

@kabiroberai kabiroberai commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Drops mxcl/Version in favour of a lighter parser that's specifically designed to parse the Swift version.

How was it tested?

  • Unit tests
  • CI

AI tool usage

How much of this PR was AI-assisted? (check one)

  • 0 - No AI was used to write code
  • 1 - I was assisted by AI. I reviewed the finished result.
  • 2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only

Summary by CodeRabbit

  • New Features
    • Swift versions can now be compared by major, minor, and patch number, and displayed in a consistent three-part format.
    • Version parsing now accepts two- or three-number versions, including supported compiler-output formats with optional prefixes or a -dev suffix.
    • Versions with an omitted patch number are treated as equivalent to the same version with patch 0.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4ae9a13-fb28-4d82-8d88-6a665980060d
📥 Commits

Reviewing files that changed from the base of the PR and between 8f0cc0a and d955c33.

⛔ Files ignored due to path filters (1)
  • Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (3)
  • Package.swift
  • Sources/PackLib/SwiftVersion.swift
  • Tests/XToolTests/SwiftVersionTests.swift
 ___________________________________________________
< This is not a microservice. This is a macro-mess. >
 ---------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kabiroberai
kabiroberai marked this pull request as ready for review October 6, 2026 22:52
@kabiroberai
kabiroberai merged commit d802c71 into main Oct 6, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant