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
package: don't mark versioned builds as dirty - #470
Makes sure versioned builds on CI don't get a -dirty suffix
AI tool usage
How much of the code in this PR was AI-assisted? (check one)
0 - No AI was used to write code
1 - I was assisted by AI in writing code. 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
Bug Fixes
Version information now consistently reflects the selected source: an explicit version is marked clean, Git-derived versions reflect the repository’s state, and no available version source reports a clean state.
No actionable comments were generated in the recent review.
Walkthrough
Package.swift now resolves xtoolVersion and hasUncommittedChanges together. An explicit XTOOL_VERSION sets the dirty state to false. Otherwise, Git supplies the version and dirty state, or the fallback is (nil, false).
Changes: Version Resolution
Layer / File(s)
Summary
Resolve version and dirty state Package.swift
Version selection now determines the dirty state at the same time. An explicit version sets it to false; Git metadata supplies both values when available.
This change stops builds with an explicit version from being labeled dirty. No concrete risk was found, so it looks ready to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "package: don't mark versioned builds as dirty" matches the change. The raw summary says an explicit XTOOL_VERSION now forces the dirty flag to false in Package.swift, where it was previousl…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "package: don't mark versioned builds as dirty" matches the change. The raw summary says an explicit XTOOL_VERSION now forces the dirty flag to false in Package.swift, where it was previously read from Git independently. The PR objective confirms the goal of stopping CI builds with a version from getting a -dirty suffix. The title names the main change and is specific enough for a teammate scanning history.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · 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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: d75fb035-8dad-4c27-916c-8df5941d90e1
Commits
Reviewing files that changed from the base of the PR and between ac20d0c and 900dedf.
Files selected for processing: 1
Package.swift
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
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
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.
What does this PR do?
Makes sure versioned builds on CI don't get a
-dirtysuffixAI tool usage
How much of the code in this PR was AI-assisted? (check one)
Summary by CodeRabbit