You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Hey everyone, I labelled this as an enhancement request because I don't think we ever intended to include version information in the Windows binary - I could be wrong about it, but that's my impression at the moment.
That said, I think this seems like something that would make sense for us to do.
👋 Hey everyone, I labelled this as an enhancement request because I don't think we ever intended to include version information in the Windows binary - I could be wrong about it, but that's my impression at the moment.
That said, I think this seems like something that would make sense for us to do.
How can you NOT include version information? That essentially means that we have no clue what is installed.
Just as an example, When any vulnerability is found we wound have a safe way to know for sure what is there, should we keep generating checksums of the binary to track which version it is?
This is a clear bug, even if you did intend to have this bug from the beginning, it shows a great deal of disregard for what Windows binaries should contain, and all it's users.
I think our team has different definitions of what a bug is, and I gather that is the cause of the frustration here. I want to emphasize that I did not dispute the value of this feature. In fact, I think you have made a compelling case for it with the security angle, alongside aligning with what is typically expected from Windows binaries 👍 Hearing this sort of feedback is very helpful to understand what users on particular platforms value. As far as I know, this has not been brought up previously.
I want to assure you that labelling this as an enhancement does not affect prioritization or whether we would accept this work. Labels like enhancement are mostly for the core team and our processes, aligning with criteria we have established and what we feel best represents our intentions with the product.
Additional notes and increasing scope for other required information
Following up as a related request and digging into this a bit, I think there are likely several of the following properties we would want to set within the .syso file for Windows users:
CompanyName: GitHub
FileDescription: GitHub CLI
FileVersion: Version being released; same as ProductVersion
InternalName: gh
OriginalFilename: gh.exe
ProductName: GitHub CLI
ProductVersion: Version being released; same as FileVersion
References
Here are some additional details I uncovered coming at this:
This is the technical documentation behind the version info under discussion
Property
Description
Comments
Additional information that should be displayed for diagnostic purposes.
CompanyName
Company that produced the file—for example, Microsoft Corporation or Standard Microsystems Corporation, Inc. This string is required.
FileDescription
File description to be presented to users. This string may be displayed in a list box when the user is choosing files to install—for example, Keyboard Driver for AT-Style Keyboards. This string is required.
FileVersion
Version number of the file—for example, 3.10 or 5.00.RC2. This string is required.
InternalName
Internal name of the file, if one exists—for example, a module name if the file is a dynamic-link library. If the file has no internal name, this string should be the original filename, without extension. This string is required.
LegalCopyright
Copyright notices that apply to the file. This should include the full text of all notices, legal symbols, copyright dates, and so on. This string is optional.
LegalTrademarks
Trademarks and registered trademarks that apply to the file. This should include the full text of all notices, legal symbols, trademark numbers, and so on. This string is optional.
OriginalFilename
Original name of the file, not including a path. This information enables an application to determine whether a file has been renamed by a user. The format of the name depends on the file system for which the file was created. This string is required.
PrivateBuild
Information about a private version of the file—for example, Built by TESTER1 on \TESTBED. This string should be present only if VS_FF_PRIVATEBUILD is specified in the fileflags parameter of the root block.
ProductName
Name of the product with which the file is distributed. This string is required.
ProductVersion
Version of the product with which the file is distributed—for example, 3.10 or 5.00.RC2. This string is required.
SpecialBuild
Text that specifies how this version of the file differs from the standard version—for example, Private build for TESTER1 solving mouse problems on M250 and M250E computers. This string should be present only if VS_FF_SPECIALBUILD is specified in the fileflags parameter of the root block.
Activity
iamazeem commentedon Mar 14, 2025
Steps to reproduce on Linux (Ubuntu) with
pwsh:2PintChristianN commentedon Mar 14, 2025
Out of curiosity i did some minor digging
Setting version info in Go compiled binaries does require some extra work, and there seems to be more then one package to kind of do the same thing
https://stackoverflow.com/questions/35126344/how-to-set-the-file-version-field-in-pe-header-of-exe-files
iamazeem commentedon Mar 14, 2025
Tested https://github.com/tc-hib/go-winres with a sample program on Windows 10 and it works fine.
Here's the complete list of commands for Powershell using
go-winres simply(JSON file not required):Looks like there'll be a hook for
goreleaserto generate*.sysofile to be used later bygo build. 🤔BagToad commentedon May 5, 2025
👋 Hey everyone, I labelled this as an enhancement request because I don't think we ever intended to include version information in the Windows binary - I could be wrong about it, but that's my impression at the moment.
That said, I think this seems like something that would make sense for us to do.
2PintChristianN commentedon May 6, 2025
How can you NOT include version information? That essentially means that we have no clue what is installed.
Just as an example, When any vulnerability is found we wound have a safe way to know for sure what is there, should we keep generating checksums of the binary to track which version it is?
This is a clear bug, even if you did intend to have this bug from the beginning, it shows a great deal of disregard for what Windows binaries should contain, and all it's users.
BagToad commentedon May 6, 2025
@caspChristian - thank you for the discussion.
I think our team has different definitions of what a bug is, and I gather that is the cause of the frustration here. I want to emphasize that I did not dispute the value of this feature. In fact, I think you have made a compelling case for it with the security angle, alongside aligning with what is typically expected from Windows binaries 👍 Hearing this sort of feedback is very helpful to understand what users on particular platforms value. As far as I know, this has not been brought up previously.
I want to assure you that labelling this as an enhancement does not affect prioritization or whether we would accept this work. Labels like
enhancementare mostly for the core team and our processes, aligning with criteria we have established and what we feel best represents our intentions with the product.andyfeller commentedon May 19, 2025
Additional notes and increasing scope for other required information
Following up as a related request and digging into this a bit, I think there are likely several of the following properties we would want to set within the
.sysofile for Windows users:CompanyName:GitHubFileDescription:GitHub CLIFileVersion: Version being released; same asProductVersionInternalName:ghOriginalFilename:gh.exeProductName:GitHub CLIProductVersion: Version being released; same asFileVersionReferences
Here are some additional details I uncovered coming at this:
https://go.dev/wiki/GcToolchainTricks
Go documentation explaining how
go buildworks with.sysofileshttps://github.com/josephspurrier/goversioninfo
Generates a
.sysofile likewindresto be used withgo buildrclone/rclone@6a2b7b9
Example of project using
goversioninfotool to generate.sysofileVERSIONINFOresourceThis is the technical documentation behind the version info under discussion
CommentsCompanyNameFileDescriptionFileVersionInternalNameLegalCopyrightLegalTrademarksOriginalFilenamePrivateBuildProductNameProductVersionSpecialBuildbabakks commentedon May 30, 2025
Thanks everyone for investigating this issue! 🙏
The PR #11048 is up for review.
babakks commentedon Jul 9, 2025
@caspChristian, @iamazeem, The Windows version info are now embedded in our latest release,
v2.75.0. Feel free to try it out! 🍻