StephanTLavavej / mingw-distro

MinGW distro build scripts.
492 stars 55 forks source link

Why doesn't 18.0 version without Git not exist? #106

Closed jakubgs closed 5 months ago

jakubgs commented 5 months ago
 > wget https://nuwen.net/files/mingw/history/mingw-18.0-without-git.exe
--2024-03-26 12:27:55--  https://nuwen.net/files/mingw/history/mingw-18.0-without-git.exe
Resolving nuwen.net (nuwen.net)... 74.207.246.46, 2600:3c01::f03c:91ff:fe96:9f0a
Connecting to nuwen.net (nuwen.net)|74.207.246.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-26 12:27:56 ERROR 404: Not Found.
jakubgs commented 5 months ago

I had to make manual changes to two files to download older versions using Scoop:

diff --git a/bucket/gcc.json b/bucket/gcc.json                                                                                                                                                                                                                                                        
index 906d5feae..f97a0ecb2 100644                                                                                                                                                                                                                                                                     
--- a/bucket/gcc.json                                                                                                                                                                                                                                                                                 
+++ b/bucket/gcc.json                                                                                                                                                                                                                                                                                 
@@ -5,7 +5,7 @@                                                                                                                                                                                                                                                                                       
     "license": "GPL-3.0-or-later",                                                                                                                                                                                                                                                                   
     "architecture": {                                                                                                                                                                                                                                                                                
         "64bit": {                                                                                                                                                                                                                                                                                   
-            "url": "https://nuwen.net/files/mingw/components-18.0.7z",                                                                                                                                                                                                                               
+            "url": "https://nuwen.net/files/mingw/history/components-18.0.7z",                                                                                                                                                                                                                       
             "hash": "50b7bddbceda793098f2fed3a249fb02911f4a46c5d9a2e6c77079fa7e40b2ad"                                                                                                                                                                                                               
         }                                                                                                                                                                                                                                                                                            
     },                                                                                                                                                                                                                                                                                               
diff --git a/bucket/mingw-nuwen.json b/bucket/mingw-nuwen.json                                                                                                                                                                                                                                        
index bad45d90c..ba0a85c3e 100644                                                                                                                                                                                                                                                                     
--- a/bucket/mingw-nuwen.json                                                                                                                                                                                                                                                                         
+++ b/bucket/mingw-nuwen.json                                                                                                                                                                                                                                                                         
@@ -5,8 +5,8 @@                                                                                                                                                                                                                                                                                       
     "license": "GPL-2.0-only",                                                                                                                                                                                                                                                                       
     "architecture": {                                                                                                                                                                                                                                                                                
         "64bit": {                                                                                                                                                                                                                                                                                   
-            "url": "https://nuwen.net/files/mingw/mingw-18.0-without-git.exe#/dl.7z",                                                                                                                                                                                                                
-            "hash": "532aa9fc377fa8cb3985fc2fadf61da43f1c50bcc464719b8274dc2b2590d688"                                                                                                                                                                                                               
+            "url": "https://nuwen.net/files/mingw/history/mingw-18.0.exe#/dl.7z",                                                                                                                                                                                                                    
+            "hash": "d76eadcfebacf688279b121c6a59c90dc2b3a69249f3765efc4d16d0708142d8"                                                                                                                                                                                                               
         }                                                                                                                                                                                                                                                                                            
     },                                                                                                                                                                                                                                                                                               
     "extract_dir": "MinGW",                                                                                                                                                                                                                                                                          
@@ -16,7 +16,7 @@                                                                                                                                                                                                                                                                                     
         "CPLUS_INCLUDE_PATH": "$dir\\include;$dir\\include\\freetype2"                                                                                                                                                                                                                               
     },                                                                                                                                                                                                                                                                                               
     "checkver": {                                                                                                                                                                                                                                                                                    
-        "regex": "mingw-([\\d.]+)-without-git"                                                                                                                                                                                                                                                       
+        "regex": "mingw-([\\d.]+)"                                                                                                                                                                                                                                                                   
     },                                                                                                                                                                                                                                                                                               
     "autoupdate": {                                                                                                                                                                                                                                                                                  
         "architecture": {                     

URL changes like this are not nice for automation tools like this.

StephanTLavavej commented 5 months ago

This was intentional. I permanently removed git from the distro, so there was no reason to keep separate "plain" and "without git" files.

jakubgs commented 5 months ago

Right, but why did you also change the path effectively breaking installation of old versions using package managers like Scoop?

StephanTLavavej commented 4 months ago

I don't want to support people using old versions of my distro (old tools are bad and should feel bad). I keep the previous version available as an emergency escape hatch if I mess something up badly.

Et7f3 commented 4 months ago

Is there an issue with git ? i didn't find closed issue about git removal/build failure.

StephanTLavavej commented 4 months ago

Nothing’s wrong with git - I just use its installer now, instead of extracting its portable zip into the distro.