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
I am using Xcode 16 which comes with a bundled swift format. When I run swift format --version, it prints main.
Does this mean the swift format bundled with Xcode will always be updated with the latest main branch? Or the bundled version is the latest from the main branch at the time of Xcode release is created?
I tried installing swift-format with homebrew and swift-format --version prints the version correctly.
The text was updated successfully, but these errors were encountered:
jkmathew
changed the title
Output of swift-format --version is confusing
Output of swift format --version is confusing
Oct 4, 2024
Unfortunately we've had to manually update the version number when cutting a release, and that can get overlooked easily. I know I've done it in the past.
IIRC, a recent change in SwiftPM has added a package API to query Git repository information and generate constants that we could reference from the --version handler instead. I would need to look further into it to see if that works as intended when a release is tagged and built.
I am using Xcode 16 which comes with a bundled
swift format
. When I runswift format --version
, it printsmain
.Does this mean the
swift format
bundled with Xcode will always be updated with the latest main branch? Or the bundled version is the latest from the main branch at the time of Xcode release is created?I tried installing swift-format with homebrew and
swift-format --version
prints the version correctly.The text was updated successfully, but these errors were encountered: