-
Notifications
You must be signed in to change notification settings - Fork 317
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
Eliminate git sha from version in case of release #1188
base: main
Are you sure you want to change the base?
Changes from all commits
238ed7c
340f71c
9fd8f57
c6d322a
7b407c4
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 |
---|---|---|
|
@@ -296,7 +296,7 @@ static int start_iiod(const char *uri, const char *ffs_mountpoint, | |
|
||
IIO_INFO("Starting IIO Daemon version %u.%u.%s\n", | ||
LIBIIO_VERSION_MAJOR, LIBIIO_VERSION_MINOR, | ||
LIBIIO_VERSION_GIT); | ||
LIBIIO_VERSION_PATCH); | ||
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. I'm not sure this is a great idea - since it will not be set to "0" all the time - and users reporting errors will no longer know what version of iiod they are using - something from main, or a release. with the git version - everyone knew. 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. For development propose and using it in other CI pipelines (like libad9361/9166, iio-osc etc), it's ok to keep using git_sha as patch version. Those daily-created packages are not used so often by customers. 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.
If the build will be from main the git sha will appear as expected. 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. Then this is even worse - since sometimes a variable called "patch" is a githash, and sometimes it's not. |
||
|
||
if (!WITH_IIOD_NETWORK | ||
&& (!WITH_IIOD_USBD || !ffs_mountpoint) | ||
|
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.
This should be using
${PROJECT_VERSION_PATCH}
per normal/standard cmake semantics.