Skip to content

[其他] 环境与 Python 下载仅使用当前下载源,失败不会自动回退到其他镜像 #2632

Description

@kawayiYokami

问题类型

Bug

问题范围

其他

代码版本

当前 main 代码审查;现场启动器为 v2.4.6。

问题描述

代码更新的 GitHub/CNB/Gitee 候选源会回退,但 DownloadService.download_env_file() 只使用当前 env_source,Python/环境包下载失败后没有同次任务内的镜像回退。结果是源码可以更新而依赖修复被单一下载源阻断。

期望行为

代码、环境包和 Python 下载共用候选源语义:用户偏好/上次成功源优先,失败立即依次尝试其他候选,全部失败才报告;成功源持久化。

相关代码

src/one_dragon/envs/download_service.py:download_env_file()config/repository.yml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions