www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20806] New: src\build.d autobootstrap mode doesn't work on

https://issues.dlang.org/show_bug.cgi?id=20806

          Issue ID: 20806
           Summary: src\build.d autobootstrap mode doesn't work on Windows
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

$ set AUTO_BOOSTRAP=1
$ rdmd build.d unittest
 curl: (22) The requested URL returned error: 403 Forbidden
This could be improved: ----- diff --git a/src/build.d b/src/build.d index 2c198d94f..272d92396 100755 --- a/src/build.d +++ b/src/build.d -963,7 +963,9 void parseEnvironment() writefln("Downloading DMD %s", hostDMDVer); auto curlFlags = "-fsSL --retry 5 --retry-max-time 120 --connect-timeout 5 --speed-time 30 --speed-limit 1024"; hostDMDRoot.mkdirRecurse; - ("curl " ~ curlFlags ~ " " ~ hostDMDURL~".tar.xz | tar -C "~hostDMDRoot~" -Jxf - || rm -rf "~hostDMDRoot).spawnShell.wait; + string cmd = ("curl " ~ curlFlags ~ " " ~ hostDMDURL~".tar.xz | tar -C "~hostDMDRoot~" -Jxf - || rm -rf "~hostDMDRoot); + writefln("Running: %s", cmd); + cmd.spawnShell.wait; } } else ----- The issue is it tries to download a .tar.gz archive rather than .7z. --
May 08 2020