-
Notifications
You must be signed in to change notification settings - Fork 79
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
[6.0] Set the library version reported via CMake to 6.0. #638
Conversation
This PR updates the version reported when using CMake (i.e. when building in the toolchain) to 6.1.0-dev with optional trailing git status information, if available. The resulting string looks like: > 6.1.0-dev (0.0.0-initial-532-gd01c406 - modified) "0.0.0-initial-532-gd01c406" in this example refers to the most recent commit on the branch I was testing on via `git describe --tags`, and "modified" is present because I had uncommitted changes. (We'll want to double-check that CMake used in CI can see the git repository and has access to the git tool.)
@swift-ci test |
OUTPUT_VARIABLE GIT_STATUS | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
if(GIT_STATUS) | ||
set(GIT_VERSION "${GIT_VERSION} - modified") |
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've usually seen the suffix -dirty
for this purpose.
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.
🤔 nsfw
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.
Okay, that's reasonable, different places have different sensitivities to that. Let's stick with what you have.
1e145c8
to
2bf0461
Compare
@swift-ci test |
**Explanation:** Sets the version of the library as built in CMake to "6.0". **Scope:** 6.0 releases built with CMake instead of SwiftPM **Issue:** N/A **Original PR:** #637 **Risk:** Low **Testing:** Manually tested at desk and in a toolchain build as we don't have CI jobs using CMake yet. See swiftlang/swift#76034 **Reviewer:** @compnerd @briancroom
**Explanation:** Sets the version of the library as built in CMake to "6.0". **Scope:** 6.0 releases built with CMake instead of SwiftPM **Issue:** N/A **Original PR:** #637, #638 **Risk:** Low **Testing:** Manually tested at desk and in a toolchain build as we don't have CI jobs using CMake yet. See swiftlang/swift#76034 **Reviewer:** @compnerd @briancroom
Explanation: Sets the version of the library as built in CMake to "6.0".
Scope: 6.0 releases built with CMake instead of SwiftPM
Issue: N/A
Original PR: #637
Risk: Low
Testing: Manually tested at desk and in a toolchain build as we don't have CI jobs using CMake yet. See swiftlang/swift#76034
Reviewer: @compnerd @briancroom