[Issue 18394] New: wrong `dmd --version` when building from git master: shows last tag instead of new one
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 7 21:06:08 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18394
Issue ID: 18394
Summary: wrong `dmd --version` when building from git master:
shows last tag instead of new one
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
git rev-parse HEAD
7e8bea0e83314f39b8c8b2bddbfbff2b0bdee74d
dmd --version
DMD v2.078.2-beta.1-653-g7e8bea0e8 DEBUG
DMD64 D Compiler v2.078.2-beta.1-653-g7e8bea0e8
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
written by Walter Bright
should show instead the next version, ie something like:
v2.079-653-g7e8bea0e8 DEBUG
this is confusing in bug reports (eg
https://issues.dlang.org/show_bug.cgi?id=18393 where dmd --version showed
v2.078.2-beta.1-653-g7e8bea0e8 even though bug affects master, not
2.078.2-beta.1)
basically as soon as one creates a release tag (eg v2.078) the version
identifier __VERSION__ should be bumped in git master
--
More information about the Digitalmars-d-bugs
mailing list