Bug 22212 – dmd version has -dirty suffix on windows
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2021-08-15T08:26:30Z
Last change time
2024-01-01T21:23:32Z
Keywords
pull
Assigned to
No Owner
Creator
fenginsc
Comments
Comment #0 by fyjzyyx — 2021-08-15T08:26:30Z
https://issues.dlang.org/show_bug.cgi?id=20620
Doesn't seem to solve the problem.
The same problem appeared on the latest version (2.097.2).
dmd --version
DMD32 D Compiler v2.097.2-dirty
Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved written by Walter Bright
Comment #1 by ibuclaw — 2023-12-27T08:58:12Z
*** Issue 20620 has been marked as a duplicate of this issue. ***
Comment #2 by dlang-bot — 2023-12-27T09:44:42Z
@ibuclaw created dlang/installer pull request #566 "Fix Issue 22212 - dmd version has -dirty suffix on windows" fixing this issue:
- Fix Issue 22212 - dmd version has -dirty suffix on windows
Typically, git-clone probes the filesystem to see if it handles the executable bit correctly and the `core.fileMode` variable is automatically set as necessary. However when building dmd releases using vagrant box method, git-clone is done on a Linux host (i.e a filesystem that handles the filemode correctly), then scp'd to a Windows VM (i.e an environment that loses the filemode). So when building Windows binaries, always ensure this variable is set to `false`.
https://github.com/dlang/installer/pull/566
Comment #3 by dlang-bot — 2023-12-27T11:31:13Z
dlang/installer pull request #566 "Fix Issue 22212 - dmd version has -dirty suffix on windows" was merged into stable:
- 32bbc075f03fd9301519a8ec77ccfea1bcd35641 by Iain Buclaw:
Fix Issue 22212 - dmd version has -dirty suffix on windows
Typically, git-clone probes the filesystem to see if it handles the executable bit correctly and the `core.fileMode` variable is automatically set as necessary. However when building dmd releases using vagrant box method, git-clone is done on a Linux host (i.e a filesystem that handles the filemode correctly), then scp'd to a Windows VM (i.e an environment that loses the filemode). So when building Windows binaries, always ensure this variable is set to `false`.
https://github.com/dlang/installer/pull/566
Comment #4 by dlang-bot — 2024-01-01T21:23:32Z
dlang/installer pull request #567 "Merge stable" was merged into master:
- efe3deb3a4ad5851451cd7aa8c9fadabef5fdacf by Iain Buclaw:
Fix Issue 22212 - dmd version has -dirty suffix on windows
Typically, git-clone probes the filesystem to see if it handles the executable bit correctly and the `core.fileMode` variable is automatically set as necessary. However when building dmd releases using vagrant box method, git-clone is done on a Linux host (i.e a filesystem that handles the filemode correctly), then scp'd to a Windows VM (i.e an environment that loses the filemode). So when building Windows binaries, always ensure this variable is set to `false`.
https://github.com/dlang/installer/pull/567