-
Notifications
You must be signed in to change notification settings - Fork 245
Output of swift format --version
is confusing
#834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
swift-format --version
is confusingswift format --version
is confusing
Synced to Apple’s issue tracker as rdar://137309661 |
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 cc @ahoppen who is in charge of releases. |
I see there is already an automation implemented here
I hope Xcode 16.1 release will have the proper version 🙂 |
Still happens: $ xcodebuild -version
Xcode 16.2
Build version 16C5032a
$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-format --version
main |
It doesn’t seem to be applied yet in Swift 6.1 (6.1.0.109.103) from Xcode 16.3 beta 2, but…
Since the automated version update script is running well on the latest pre-release of the |
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: