Skip to content

Git binaries on Windows don't have a version number #1797

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

Closed
JJClements opened this issue Aug 20, 2018 · 11 comments
Closed

Git binaries on Windows don't have a version number #1797

JJClements opened this issue Aug 20, 2018 · 11 comments
Milestone

Comments

@JJClements
Copy link

Bit of a strange one, we've noticed that the git binaries on Windows don't seem to have a build version (at all) that presumably matches the release version of the application? Is there a reason for this? It's the only one of many applications that we use that doesn't seem to add the tags to the binaries when they are compiled for some reason?

This would also really help with our patching/maintenance to ensure the application is always kept up to date ;-)

Thanks

@shiftkey
Copy link

@JJClements not sure I understand the context - the version you get from git version is tagged in the repository and can be tracked to releases:

Is there more that you're looking for from this?

@JJClements
Copy link
Author

Hi @shiftkey - I should have been clearer, the (file version AND the product version) properties that you see when you right click on the actual windows binary itself do not match those of the installer.

The installer version (which is correct):
installer

The actual git.exe binary:
binary

@JJClements
Copy link
Author

So there are 2 issues, the first is that the format of the file version and the product version differ between the installer and the actual git.exe binary.

The second is that the version of the installer does not match the version of the git.exe binary that is installed on the filesystem.

@dscho
Copy link
Member

dscho commented Aug 20, 2018

@JJClements good find.

Now for the next step: figure out how to fix this. A quick web search found this for you: https://stackoverflow.com/questions/6498750/how-do-i-automatically-set-the-version-of-my-inno-setup-installer-according-to-m#6498791

The next steps for you involve:

  1. installing the Git for Windows SDK,
  2. building an installer with sdk build git-and-installer just to see that everything works
  3. patching /usr/src/build-extra/installer/install.iss and/or /usr/src/build-extra/installer/release.sh accordingly
  4. verify with sdk build git-and-installer that it worked
  5. commit, fork build-extra, push your branch and open a PR.

@r1walz
Copy link

r1walz commented Feb 18, 2019

@dscho : This is not resolved as of v2.20.1. I'd like to work on this one!

@dscho
Copy link
Member

dscho commented Feb 18, 2019

@r1walz go for it!

(It is not resolved as of v2.20.1, and if we can get it solved for v2.21.0, that'd be awesome, especially since the OP clad themselves in silence ever since asked to do something ;-))

@dscho
Copy link
Member

dscho commented Feb 27, 2019

@JJClements feel free to pick up work on this, as @r1walz seems to be busy applying for the Google Summer of Code, and it really is not his responsibility to fulfill your wishes, especially when you have been given all the tools to fulfill your wishes yourself.

@dscho
Copy link
Member

dscho commented Mar 1, 2019

@r1walz sorry, I did not mean to take this project from you! It also does not exactly look like @JJClements is super eager to help Git for Windows in any way, either, so...

You mentioned on IRC that you have some preliminary patch that however does not seem to do the job? Can you push this somewhere so I can have a look?

@r1walz
Copy link

r1walz commented Mar 1, 2019

@dscho It's not much I just changed this line, just like you suggested, but, after reading the Inno Setup Script docs, I think that line actually changes the version of the installer, not the installed file. Also, I think we have to change flags in file-list.iss.

@dscho
Copy link
Member

dscho commented Mar 1, 2019

@r1walz still, if you can commit a WIP ("Work In Progress") and push it somewhere so I can easily just pull and check things out...

r1walz added a commit to r1walz/build-extra that referenced this issue Mar 2, 2019
As reported by @JJClements, the File version and Product version of the
installer and installed binary were not the same. They are set by the
`installer/release.sh` and by using `sdk build (installer |
git-and-installer)` commands, which created this discrepancy.

We create two new macros, `FILE_VERSION` and `PROD_VERSION` to store
File and Product version of the included binary and then directly
copying it to the installer file.

Closes: git-for-windows/git#1797
Signed-off-by: Rohit Ashiwal <[email protected]>
r1walz added a commit to r1walz/build-extra that referenced this issue Mar 6, 2019
As reported by @JJClements, the File version and Product version of the
installer and installer binary were not the same. They are set by the
`installer/release.sh` and by using `sdk build (installer |
git-and-installer)` commands, which created this discrepancy.

Create two macros, `FILE_VERSION` and `PROD_VERSION` to store File and
Product version of the included binary and copy it to the installer
file.

Closes: git-for-windows/git#1797
Signed-off-by: Rohit Ashiwal <[email protected]>
r1walz added a commit to r1walz/build-extra that referenced this issue Mar 6, 2019
As reported by @JJClements, the File version and Product version of the
installer and installer binary were not the same. They are set by the
`installer/release.sh` and by using `sdk build (installer |
git-and-installer)` commands, which created this discrepancy.

Create two macros, `FILE_VERSION` and `PROD_VERSION` to store File and
Product version of the included binary and copy it to the installer
file.

Closes: git-for-windows/git#1797
Signed-off-by: Rohit Ashiwal <[email protected]>
r1walz added a commit to r1walz/build-extra that referenced this issue Mar 6, 2019
As reported by @JJClements, the File version and Product version of the
installer and installer binary were not the same. They are set by the
`installer/release.sh` and by using `sdk build (installer |
git-and-installer)` commands, which created this discrepancy.

Create two macros, `FILE_VERSION` and `PROD_VERSION` to store File and
Product version of the included binary and copy it to the installer
file.

Closes: git-for-windows/git#1797
Signed-off-by: Rohit Ashiwal <[email protected]>
@dscho
Copy link
Member

dscho commented Mar 6, 2019

@JJClements a suggestion: buy @r1walz a drink of his choice, as he fulfilled your wish.

@dscho dscho added this to the v2.21.0(2) milestone Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants