Bug 20806 – src\build.d autobootstrap mode doesn't work on Windows

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-05-08T11:57:41Z
Last change time
2024-12-13T19:08:28Z
Assigned to
No Owner
Creator
Andrej Mitrovic
Moved to GitHub: dmd#19700 →

Comments

Comment #0 by andrej.mitrovich — 2020-05-08T11:57:41Z
$ 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.
Comment #1 by robert.schadek — 2024-12-13T19:08:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19700 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB