Skip to content

package: don't mark versioned builds as dirty - #470

Merged
kabiroberai merged 1 commit into
mainfrom
versioned-not-dirty
Nov 23, 2026
Merged

kabiroberai merged 1 commit into
mainfrom
versioned-not-dirty

Conversation

@kabiroberai

@kabiroberai kabiroberai commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

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.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Merge Risk: Minimal · up to 900de

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

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 November 23, 2026 20:19
@kabiroberai
kabiroberai enabled auto-merge (squash) November 23, 2026 20:19
@kabiroberai
kabiroberai merged commit 3ff01e1 into main Nov 23, 2026
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