mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-23 10:59:29 +08:00
Introduce provider
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_clojure_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_dart_flutter_sources[] = {
|
||||
{&Upstream, "https://storage.googleapis.com"},
|
||||
{&UpstreamProvider, "https://storage.googleapis.com"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
|
||||
{&Nju, "https://mirror.nju.edu.cn/flutter"}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_dart_sources[] = {
|
||||
{&Upstream, "https://pub.dev"},
|
||||
{&UpstreamProvider, "https://pub.dev"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
|
||||
|
||||
@@ -27,7 +27,7 @@ GoProxyIO = {
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_go_sources[] = {
|
||||
{&Upstream, "https://proxy.golang.org"},
|
||||
{&UpstreamProvider, "https://proxy.golang.org"},
|
||||
{&GoProxyCN, "https://goproxy.cn"},
|
||||
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_haskell_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/hackage"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_java_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://maven.aliyun.com/repository/public/"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
|
||||
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_julia_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
|
||||
{&Pku, "https://mirrors.pku.edu.cn/julia"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/julia"}
|
||||
|
||||
@@ -20,7 +20,7 @@ Api7 = {
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_lua_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Api7, "https://luarocks.cn"},
|
||||
};
|
||||
def_sources_n(pl_lua);
|
||||
|
||||
@@ -28,7 +28,7 @@ NpmMirror = {
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_nodejs_sources[] = {
|
||||
{&Upstream, "https://registry.npmjs.org/"}, // @note 根据 pnpm 官网,有最后的斜线
|
||||
{&UpstreamProvider, "https://registry.npmjs.org/"}, // @note 根据 pnpm 官网,有最后的斜线
|
||||
{&NpmMirror, "https://registry.npmmirror.com"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/"},
|
||||
{&Tencent, "https://mirrors.cloud.tencent.com/npm/"},
|
||||
@@ -45,7 +45,7 @@ def_sources_n(pl_nodejs);
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_nodejs_binary_release_sources[] = {
|
||||
{&Upstream, "https://nodejs.org/dist/"},
|
||||
{&UpstreamProvider, "https://nodejs.org/dist/"},
|
||||
{&NpmMirror, "https://npmmirror.com/mirrors"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/"},
|
||||
|
||||
@@ -21,7 +21,7 @@ NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.o
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_nuget_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&NugetOrg, "https://www.nuget.org/api/v2/"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_ocaml_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"}
|
||||
};
|
||||
def_sources_n(pl_ocaml);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_php_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/composer/"},
|
||||
{&Tencent, "https://mirrors.tencent.com/composer/"},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_perl_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"},
|
||||
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_python_sources[] = {
|
||||
{&Upstream, "https://pypi.org/simple"},
|
||||
{&UpstreamProvider, "https://pypi.org/simple"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"},
|
||||
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},
|
||||
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple"},
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_r_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
|
||||
// {&Ali, "https://mirrors.aliyun.com/CRAN/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"},
|
||||
|
||||
@@ -22,7 +22,7 @@ RubyChina = {
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_ruby_sources[] = {
|
||||
{&Upstream, "https://rubygems.org"},
|
||||
{&UpstreamProvider, "https://rubygems.org"},
|
||||
{&RubyChina, "https://gems.ruby-china.com/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/rubygems/"}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_rust_cargo_sources[] = {
|
||||
{&Upstream, "https://index.crates.io/"}, // @help 是这个吗?
|
||||
{&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗?
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_rust_rustup_sources[] = {
|
||||
{&Upstream, "https://static.rust-lang.org"},
|
||||
{&UpstreamProvider, "https://static.rust-lang.org"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static"},
|
||||
|
||||
Reference in New Issue
Block a user