D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12229 - Properly name DMD compiler versions
Summary: Properly name DMD compiler versions
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 20:13 UTC by Andrew Edwards
Modified: 2018-03-27 07:57 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrew Edwards 2014-02-22 20:13:02 UTC
On 02/20/2014 02:13 AM, Andrew Edwards wrote:
Regardless of which version of DMD one ends up using, the DMD help message only displays the base release version. Meaning, if I'm running beta 1, 2, 3 or rc 1 of release 2.065, typing dmd at the shell prompt always yields "DMD[32/64] D Compiler v2.065". It must be possible to change this so that the correct version information is displayed. If I'm running beta 1, it should say "DMD[32/64] D Compiler v2.065 beta 1" and the same goes for any other release.

On 2/20/14, 2:03 PM, Walter Bright wrote:
The string printed is set by the variable global.version, which is set in Global::init() by the contents of verstr.h.
Comment 1 Martin Nowak 2014-02-23 07:34:54 UTC
Version number is set by the version file. https://github.com/D-Programming-Language/dmd/blob/master/VERSION
We should remove that file because it requires manual updating. Instead we can set the version from the build script.
Comment 2 Andrew Edwards 2014-02-27 21:48:44 UTC
We should indeed remove VERSION from the repo. At no time should HEAD be tagged with a specific version number. This creates confusion when trying to identify between changes intended for master vs. the branch and unnecessarily complicates the pick process.
Comment 3 Seb 2018-03-27 07:57:25 UTC
> We should indeed remove VERSION from the repo

See e.g.

https://github.com/dlang/dmd/pull/6935

tl;dr: VERSION needs to be kept in the source tree e.g. in case someone downloads the source tarball from GitHub.

-> closing this as WONTFIX