Skip to content

为dep-cmake增加自动拉取软件包功能 #48

Open

Description

@tz12323

现有的 dep-cmake 仅接收本地源码路径,完全没有内置 Git 拉取实现,也没有封装源类型的抽象。

现在使用方式:用户自己提前把 CMake 库源码下载/克隆到本地,把源码目录字符串传给 dep-cmake。用户需要自行手写子模块、前置 git clone 脚本,或者在 build.mcpp 里调用命令行执行 git,才能拿到第三方 CMake 库源码,体验割裂。

我希望给 dep-cmake 增加Git 仓库自动拉取能力,新增源抽象,支持声明 Git URL + ref(tag/commit/branch),插件内部完成 clone/fetch/checkout,之后再执行 CMake configure & build。

当前痛点

1. 插件无任何远程源码获取逻辑,只消费本地已存在的源码文件夹;
​
2. 引入外部 CMake 库必须额外维护拉取脚本,多人协作、CI 容易出现源码缺失、版本不一致;

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