-
Notifications
You must be signed in to change notification settings - Fork 250
[6.2] Check version has been updated when publishing a release #1029
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ | |
|
||
func printVersionInformation() { | ||
// TODO: Automate updates to this somehow. | ||
print("main") | ||
print("6.2.0") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be more appropriate if it were in the form of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh, this is an interesting point. We really have two versions here - one is swift-format as a library, using the same semantic versioning as swift-syntax. Another is swift-format in the toolchain, which uses the toolchain versioning scheme. Which also means the check I added here doesn't work 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this target is specifically the frontend executable, I would argue that the version number used here should match the one in the toolchain, not the swift-syntax semver. We don't encode the version of the "library" modules anywhere. I suppose we could. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I agree. That was my "which also means the check I added here doesn't work" since publishing the release is for the library and not executable. I'd like to do something here to avoid forgetting to update this, but not sure what that something is right now. |
||
} |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also take into account the prerelease format, such as
"602.0.0-prerelease-$(date +'%Y-%m-%d')"
🤔Or, to avoid being affected by prerelease variations, it might be better to use
github.event.inputs.swift_format_version
instead ofsteps.swift_format_version.outputs.swift_format_version.