Skip to content

【欢迎参与贡献】搜集默认源地址,帮助使用 reset 功能 #111

@ccmywish

Description

@ccmywish

1. 无法 reset

chsrc 目前大部分能够进行 chsrc setchsrc get 操作,但是却不能进行 chsrc reset 操作,这并不是由于重置的换源逻辑没有实现,反而是由于不知道默认源的URL是什么。


2. 默认源也许更快

在某些特殊时候,也许你的默认源也许比镜像源快,这也证明了默认源的重要性:

Image


PR 还是 评论?

chsrc 是一个集体性互助性项目,我们欢迎直接PULL REQUEST,而非仅仅在此issue评论,这是一个开始参与 chsrc 贡献的简单但十分有帮助的契机。

在代码中添加URL的位置很好辨认:

显示 {&UpstreamProvider, 的位置,如 Python 的默认地址:

def_sources_begin()
{&UpstreamProvider, "https://pypi.org/simple", FeedByPrelude},
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",FeedByPrelude},
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple", FeedByPrelude},
/* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple", FeedByPrelude},
{&Ali, "https://mirrors.aliyun.com/pypi/simple/", FeedByPrelude},
{&Nju, "https://mirror.nju.edu.cn/pypi/web/simple",FeedByPrelude},
{&Pku, "https://mirrors.pku.edu.cn/pypi/web/simple",FeedByPrelude},
{&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple",FeedByPrelude},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple",FeedByPrelude}
{&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple",FeedByPrelude},
{&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple",FeedByPrelude}
/* 不启用原因:24小时更新一次 */
// {&Netease, "https://mirrors.163.com/.help/pypi.html", NULL}
def_sources_end()


语言


OS


软件

  • Anaconda (感谢 @Yangmoooo)
  • Docker Hub
  • Homebrew
  • CocoaPods
  • Emacs
  • Flathub (感谢 @jialinlvcn)
  • Guix
  • Nix
  • Tex Live

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions