已合并
Update torchair (GitCode) #26139
dilililiwhy创建于 2025年10月30日
Update torchair (GitCode) #26139
已合并
dilililiwhy创建于 2025年10月30日
1 个文件变更+1-1
@@ -7,7 +7,7 @@
7 url = https://gitee.com/mirrors/googletest.git7 url = https://gitee.com/mirrors/googletest.git
8[submodule "third_party/torchair/torchair"]8[submodule "third_party/torchair/torchair"]
9 path = third_party/torchair/torchair9 path = third_party/torchair/torchair
10- url = https://gitee.com/ascend/torchair.git10+ url = https://gitcode.com/ascend/torchair.git
O
OopenLiBingCI2025年10月30日

代码可维护性: 在检视过程中发现,torchair子模块的URL从gitee.com迁移到了gitcode.com,但其他子模块的URL来源存在不一致性。op-plugin、torchair、Tensorpipe使用gitcode.com,而googletest、fmt、nlohmann、torch-mlir使用gitee.com。这种混合使用不同代码托管平台的情况可能会影响项目的依赖管理一致性和长期维护性。

问题类型: 代码可维护性 文件路径: .gitmodules 行号: 10 问题代码:

url = https://gitcode.com/ascend/torchair.git

修改建议:

建议统一所有子模块的代码托管平台来源。如果项目主要使用gitcode.com,考虑将googletest、fmt、nlohmann、torch-mlir也迁移到gitcode.com的对应镜像;如果主要使用gitee.com,则考虑将op-plugin、torchair、Tensorpipe迁移回gitee.com。这样可以简化依赖管理,提高构建稳定性。

此评论由代码审查工具自动生成

likedislike
11[submodule "third_party/Tensorpipe"]11[submodule "third_party/Tensorpipe"]
12 path = third_party/Tensorpipe12 path = third_party/Tensorpipe
13 url = https://gitcode.com/ascend/Tensorpipe.git13 url = https://gitcode.com/ascend/Tensorpipe.git