-
Notifications
You must be signed in to change notification settings - Fork 472
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
Feature request: Add build date to the Help->About dialog #1172
Comments
SolveSpace has always had a rather "simple" versioning approach. For example during the whole five years between v.2.3 and v.3.0 all builds from master were simply 3.0 and the commit hash. If we add the date of the last commit it is redundant - one can simply look up the commit on GitHub by going to (example for 3.0) If on the other hand we add the build date there could be multiple binaries built by different people at different times from the same commit showing different dates in the About dialog - this does not carry information - since anyone can build whatever they want - but adds confusion. Because of the above I think we should not add the date. Finally @phkahler, @ppd, @jwesthues now that 3.0 is released should we change the minor version in master to 3.1 to match the approach used so far? |
That makes sense from dev's perspective, but it is very cumbersome and confusing from user's perspective. I get that the build date is not reliable, but there really should be some information about the age so that a user doesn't have to cross-reference the commit hash, if they know how to make sense of it at all. Redundancy is good in this case IMO. |
Versioning is really a matter of philosophy, I guess. I'm rather fond of bumping the version just before/when tagging a new release. Dev/edge versions should then always be named according to the git describe scheme, e.g. Advancing the in-source version before tagging the release leads to confusion when you then decide to do major release instead. This is probably not really a concern for solvespace though. |
By the way the commit hash is obtained here https://github.com/solvespace/solvespace/blob/master/cmake/GetGitCommitHash.cmake in a very clever way by looking inside the .git directory directly. I like this a lot since it will work on a system that somehow (?!) has a zipped up project but no git installed. This will not be as easy for the date. @rpavlik at the same time has a rather complicated cmake script(?) to get information out of git here https://github.com/rpavlik/cmake-modules |
We do lack the "commits since last release" component of the git describe string, and we use I'd strongly recommend against using a date, though, since the trend in open source is toward reproducible builds (you should be able to set up a build environment in a specific way and get the exact same bits that came in the package) and thus including build date is greatly frowned upon and typically patched out by distros. (Date of last commit is probably OK but harder to get and less common that just using straight git-describe) Most of my cmake script isn't used if you only want git describe data. It's complicated because it has to find a file that will change when the git commit changes so that it can trigger a CMake re-configure, while also coping with submodules, being in a submodule, not being called from the root of a repo, being in a git worktree without a separate git dir, etc... it's by far my most popular module and most widely used, and the source of nearly all of my StackOverflow cred ;) You can trust that it works without caring too much about the how/why, hopefully. |
@rpavlik very good point against adding the date I actually found your CMake script on StackOverflow while searching how to do git describe for this issue :-) |
I can probably do this (using my module) if nobody beats me to it. |
I agree with reproducible builds. That said, if the last commit date is reproducible that may be nice to add. Debian guidelines are probably better to follow than none. |
Maybe this could be accomplished by updating the "About" window so the version number is a hyperlink to the associated commit on GitHub (instead of being plain, non-interactive text). For example: Given the following "About" window: The
That would serve as a one-click way for the user to determine the date of the latest commit included in the build. |
@gitname That is an excellent idea. |
The idea is indeed excellent - I also thought about it but we will need to figure out how to do it on all platforms. The website/help menu item already opens a link so we have some relevant code. I will look into it. |
Here is how we open the website from `Help | website / Manual" menu Line 1039 in 5efc148
And just below that is the About dialog. It is not going to be trivial to make the version a link. But we could easily add an extra menu item. But what to call it? There is also an unused one solvespace/src/textscreens.cpp Line 93 in 5efc148
|
The "Go to GitHub commit for 30~41eb60d3" link ath the bottom of the configuration screen opens the URL solvespace@41eb60d3 and allows the user to see the date of the commit that SolveSpace was built from. Closes solvespace#1172
The "Go to GitHub commit for 30~41eb60d3" link at the bottom of the configuration screen opens the URL solvespace@41eb60d3 and allows the user to see the date of the commit that SolveSpace was built from. Closes solvespace#1172
The "Go to GitHub commit for 3.0~129ff2f0" link at the bottom of the configuration screen opens the URL https://github.com/solvespace/solvespace/commits/129ff2f0 and allows the user to see the date of the commit that SolveSpace was built from. Closes solvespace#1172
The "Go to GitHub commit" item in the Help menu opens the URL https://github.com/solvespace/solvespace/commits/5efc148 and allows the user to see the date of the commit that SolveSpace was built from. Closes solvespace#1172
The "Go to GitHub commit" item in the Help menu opens the URL https://github.com/solvespace/solvespace/commits/5efc148 and allows the user to see the date of the commit that SolveSpace was built from. Closes solvespace#1172
The "Go to GitHub commit" item in the Help menu opens the URL https://github.com/solvespace/solvespace/commits/5efc148 and allows the user to see the date of the commit that SolveSpace was built from. Closes #1172
Sometimes, it would be nice to easily find out how old my installed build is.
It would be nice if in addition to the revision number, the Help>About dialog contained a date of either the last commit or the build.
The text was updated successfully, but these errors were encountered: