www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20826] New: CI breakage: create_dmd_release attempts to copy


          Issue ID: 20826
           Summary: CI breakage: create_dmd_release attempts to copy the
                    complete dmd repo.
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: installer
          Assignee: nobody puremagic.com
          Reporter: Bastiaan Veelo.net

Currently the github dlang.installer (Build_Release) check is failing. This
happens when create_dmd_release is copying the dmd sources to the release
directory [1] with the line

  copyDirVersioned(cloneDir~"/dmd/src",  releaseDir~"/dmd2/src/dmd");

This causes "git ls-files" to be executed, which _should_ list the versioned
files in cloneDir~"/dmd/src". Somehow though, it erroneously lists all
versioned files as seen from the root of cloneDir. As a result the copy fails,
because the files in the root (such as ".azure-pipelines/lib.sh") do not exist
in the dmd/src subdirectory.

I suspect that "git ls-files" is having trouble with mixed directory separators
(/ and \). Perhaps git has been updated, because the relevant lines in the
installer have not changed in years.


May 12 2020