Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add golang 、dart、flutter pub default upstream addr #112

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/recipe/lang/Dart/Flutter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
* -------------------------------------------------------------
* File Authors : Aoran Zeng <[email protected]>
* Contributors : Nil Null <[email protected]>
* | czyt <[email protected]>
* Created On : <2023-09-10>
* Major Revision : 2
* Last Modified : <2024-09-14>
* Major Revision : 3
* Last Modified : <2024-10-31>
*
* 2024-09-14: 不得不将Dart和Flutter拆分为两个Target,
* 因为3家教育网镜像站给出的 Dart 和 Flutter 换源URL模式都不一样
* 2024-10-31: 补充FLUTTER_STORAGE_BASE_URL的默认源地址
* ------------------------------------------------------------*/

/**
* @update 2024-09-14
*/
static SourceInfo
pl_dart_flutter_sources[] = {
{&Upstream, NULL},
{&Upstream, "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"}
Expand Down
9 changes: 6 additions & 3 deletions src/recipe/lang/Dart/Pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
* -------------------------------------------------------------
* File Authors : Aoran Zeng <[email protected]>
* Contributors : Nil Null <[email protected]>
* | czyt <[email protected]>
* Created On : <2023-09-10>
* Major Revision : 3
* Last Modified : <2024-09-14>
* Major Revision : 4
* Last Modified : <2024-10-31>
*
* 2024-10-31: 补充PUB_HOSTED_URL的默认源地址
*
* Dart Pub 软件仓库
* ------------------------------------------------------------*/
Expand All @@ -15,7 +18,7 @@
*/
static SourceInfo
pl_dart_sources[] = {
{&Upstream, NULL},
{&Upstream, "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"}
Expand Down
8 changes: 6 additions & 2 deletions src/recipe/lang/Go.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
* -------------------------------------------------------------
* File Authors : Aoran Zeng <[email protected]>
* Contributors : Nil Null <[email protected]>
* | czyt <[email protected]>
* Created On : <2023-08-30>
* Last Modified : <2024-08-09>
* Major Revision : 1
* Last Modified : <2024-10-31>
*
* 2024-10-31: 补充Go语言的默认GOPROXY地址
* ------------------------------------------------------------*/

static MirrorSite
Expand All @@ -21,7 +25,7 @@ GoProxyIO = {"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://gopr
*/
static SourceInfo
pl_go_sources[] = {
{&Upstream, NULL},
{&Upstream, "https://proxy.golang.org,direct"},
{&GoProxyCN, "https://goproxy.cn"},
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
Expand Down