[前][次][番号順一覧][スレッド一覧]

ruby-changes:58879

From: Kazuhiro <ko1@a...>
Date: Fri, 22 Nov 2019 13:58:37 +0900 (JST)
Subject: [ruby-changes:58879] 8eb0a9e566 (master): Use jsDelivr instead of raw.githubusercontent.com

https://git.ruby-lang.org/ruby.git/commit/?id=8eb0a9e566

From 8eb0a9e5668032e750b91739cc40f3180278728d Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Fri, 22 Nov 2019 13:55:59 +0900
Subject: Use jsDelivr instead of raw.githubusercontent.com

Try to fix download error on Solaris CI

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191121T162422Z.fail.html.gz
```
tool/downloader.rb:243:in `rescue in download': failed to download config.guess (RuntimeError)
Net::HTTPFatalError: 503 "Service Unavailable": https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess
```

diff --git a/tool/downloader.rb b/tool/downloader.rb
index f42f9a0..9a89010 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -51,7 +51,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L51
   class GNU < self
     def self.download(name, *rest)
       if https?
-        super("https://raw.githubusercontent.com/gcc-mirror/gcc/master/#{name}", name, *rest)
+        super("https://cdn.jsdelivr.net/gh/gcc-mirror/gcc@master/#{name}", name, *rest)
       else
         super("https://repo.or.cz/official-gcc.git/blob_plain/HEAD:/#{name}", name, *rest)
       end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]