submodule(名词):子模块;指一个较大系统、项目或程序中的独立模块,通常可以单独开发、测试或复用。在软件版本控制(如 Git)中,常指被主项目引用的外部仓库,作为项目的一部分进行管理。(也可泛指任何“子级模块”结构。)
/ˈsʌbˌmɒdʒuːl/(英式)
/ˈsʌbˌmɑːdʒuːl/(美式)
The project includes a submodule for authentication.
这个项目包含一个用于身份验证的子模块。
To keep dependencies stable, we pinned the library as a submodule and updated it only after the integration tests passed.
为了保持依赖稳定,我们把这个库固定为一个子模块,并且只在集成测试通过后才更新它。
sub- 表示“下、次级、附属”,module 表示“模块、组件”。合起来就是“从属于更大模块的模块”。在计算机领域中,该词常用于描述软件结构的分层与复用;在 Git 语境下,“submodule”特指把另一个仓库作为子项目嵌入并引用的机制。