digitalmars.D - DUB error with package ddn-data-xml
- torhu (4/14) May 02 I'm not sure if this is a dub issue, a code.dlang.org issue or if
- Dejan Lekic (28/42) May 02 tohu, thanks for reporting this. I do not have access to Windows
- Dejan Lekic (6/9) May 02 Quick look from a ReactOS VM on my Linux box (as that is the only
- Dejan Lekic (43/46) May 03 The issue is more weird than I thought... Looks like Codeberg for
- Dejan Lekic (3/7) May 03 This issue seems actually bigger than I thought as currently we
- Dejan Lekic (4/6) May 03 I joined the discussion started by someone from the Python
- Dejan Lekic (11/14) May 04 Until this problem is resolved somehow, workaround is to download
I'm not sure if this is a dub issue, a code.dlang.org issue or if
the zip file is broken. I also tried version 1.1.2 of the
package, same error.
C:\prog\prosjekt\MonsterBrowser_phobos2>dub build -a=x86
-c=windows
Fetching ddn-data-xml 1.1.3 (getting selected version)
Failed to extract zip archive for ddn-data-xml
1.1.3...
Failed to extract zip archive for ddn-data-xml
1.1.3...
Failed to extract zip archive for ddn-data-xml
1.1.3...
Error found no valid 'end of central dir record'
For now, I'm just using a local installation of the package.
May 02
On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:I'm not sure if this is a dub issue, a code.dlang.org issue or if the zip file is broken. I also tried version 1.1.2 of the package, same error.tohu, thanks for reporting this. I do not have access to Windows right now, but will definitely look at this tomorrow. It could be that dub packaged the code in wrong way. Workaround is ofc to clone the repo locally on your Windows box, and try to build it. This is exactly what I am going to do tomorrow. If it happens to be a genuine issue in the ddn-data-xml code, I will try to fix it. The right place to report ddn-data-xml issue(s) is https://codeberg.org/ddn/ddn-data-xml/issues ZIP looks good btw: ``` dejan mini:/tmp » wget https://code.dlang.org/packages/ddn-data-xml/1.1.3.zip HTTP response 302 [https://code.dlang.org/packages/ddn-data-xml/1.1.3.zip] Enqueue https://codeberg.org/ddn/ddn-data-xml/archive/v1.1.3.zip Saving '1.1.3.zip' HTTP response 200 [https://codeberg.org/ddn/ddn-data-xml/archive/v1.1.3.zip] 1.1.3.zip 100% [======================================================================================================================== =================>] 238.96K --.-KB/s [Files: 1 Bytes: 238.99K [138.14KB/s] Redirects: 1 Todo: 0 Errors: 0 ] dejan mini:/tmp » zip -T 1.1.3.zip test of 1.1.3.zip OK ```C:\prog\prosjekt\MonsterBrowser_phobos2>dub build -a=x86 -c=windows Fetching ddn-data-xml 1.1.3 (getting selected version) Failed to extract zip archive for ddn-data-xml 1.1.3... Failed to extract zip archive for ddn-data-xml 1.1.3... Failed to extract zip archive for ddn-data-xml 1.1.3... Error found no valid 'end of central dir record'For now, I'm just using a local installation of the package.
May 02
On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:I'm not sure if this is a dub issue, a code.dlang.org issue or if the zip file is broken. I also tried version 1.1.2 of the package, same error.Quick look from a ReactOS VM on my Linux box (as that is the only 32bit "Windows" I have access to):  Looks like some weird DUB or dub-registry issue. I have also successfully downloaded and extracted the ZIP file.
May 02
On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:I'm not sure if this is a dub issue, a code.dlang.org issue or if the zip file is broken. I also tried version 1.1.2 of the package, same error.The issue is more weird than I thought... Looks like Codeberg for whatever reason refuses connections under certain circumstances: ``` mingw> curl -L -o ddn-6.2.0.zip https://code.dlang.org/packages/ddn/6.2.0.zip mingw> file ddn-6.2.0.zip ddn-6.2.0.zip: HTML document, ASCII text ``` however, ``` mingw> wget -v https://code.dlang.org/packages/ddn/6.2.0.zip --2026-05-03 19:00:58-- https://code.dlang.org/packages/ddn/6.2.0.zip Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt' Resolving code.dlang.org (code.dlang.org)... 104.21.37.229, 172.67.214.172, 2606:4700:3033::ac43:d6ac, ... Connecting to code.dlang.org (code.dlang.org)|104.21.37.229|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeberg.org/ddn/ddn/archive/v6.2.0.zip [following] --2026-05-03 19:00:58-- https://codeberg.org/ddn/ddn/archive/v6.2.0.zip Resolving codeberg.org (codeberg.org)... 217.197.84.140, 2a0a:4580:103f:c0de::1 Connecting to codeberg.org (codeberg.org)|217.197.84.140|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 839834 (820K) [application/octet-stream] Saving to: ‘6.2.0.zip’ 6.2.0.zip 100%[=============================================>] 820.15K 3.21MB/s in 0.2s 2026-05-03 19:00:59 (3.21 MB/s) - ‘6.2.0.zip’ saved [839834/839834] mingw> file 6.2.0.zip 6.2.0.zip: Zip archive data, at least v1.0 to extract, compression method=store ``` So as you can see it works with `wget` but not with `curl` (which dub uses internally I believe). Why is this happening is beyond me to be honest...
May 03
On Sunday, 3 May 2026 at 18:08:31 UTC, Dejan Lekic wrote:On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:This issue seems actually bigger than I thought as currently we can't get anything that is hosted on Codeberg!I'm not sure if this is a dub issue, a code.dlang.org issue or if the zip file is broken. I also tried version 1.1.2 of the package, same error.
May 03
On Sunday, 3 May 2026 at 18:13:55 UTC, Dejan Lekic wrote:This issue seems actually bigger than I thought as currently we can't get anything that is hosted on Codeberg!I joined the discussion started by someone from the Python community. Looks like they have the same problem: https://codeberg.org/Codeberg/Community/issues/2563#issuecomment-14252861
May 03
On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:I'm not sure if this is a dub issue, a code.dlang.org issue or if the zip file is broken. I also tried version 1.1.2 of the package, same error.Until this problem is resolved somehow, workaround is to download the ZIP packages to $HOME/dub-packages for an example and then have .dub/settings.json file with: ```json { "registryUrls": ["file:///home/dejan/dub-packages", "https://code.dlang.org"] } ``` (Instead of `dejan` put your real user-name, ofc)
May 04









Dejan Lekic <dejan.lekic gmail.com> 