简体   繁体   English

如何在一个GIT存储库中将Composer与多个TYPO3扩展一起使用

[英]How can I use Composer with multiple TYPO3 Extensions in one GIT Repository

So far as I know, this is not possible. 据我所知,这是不可能的。 But I read some stuff about GIT subtree and submodules, which should do the "trick". 但是我读了一些有关GIT子树和子模块的东西,这些应该可以做“把戏”。 But how do I accomplish this! 但是我该怎么做呢!

I found this blog post https://medium.com/sroze/managing-monolithic-repositories-with-composers-path-repository-c28af031746d , but cant get it work for me. 我发现了此博客帖子https://medium.com/sroze/managing-monolithic-repositories-with-composers-path-repository-c28af031746d ,但是无法让它对我有用。

Can anybody help please? 有人可以帮忙吗?

In general it is not necessary to have sub-repositories in a composer based installation of TYPO3. 通常,在基于Composer的TYPO3安装中不必具有子存储库。 Each extension is handled with it's own repository independent of others. 每个扩展都使用其自己的独立于其他资源的存储库进行处理。

Without composer you could use the mechanism of sub repositories to build an installation from the base repository which includes all extensions with their original repository. 没有composer,您可以使用子存储库机制从基本存储库构建安装,该基础存储库包括所有扩展及其原始存储库。

I'm not sure whether composer handles sub repositories in a correct way as sub repositories need further git commands to fetch/ update the sub repositories. 我不确定作曲家是否以正确的方式处理子存储库,因为子存储库需要进一步的git命令来获取/更新子存储库。
Or you could get conflicts when the main repository requests another version of an extension than composer. 否则,当主存储库请求的扩展名不是Composer的另一个版本时,您可能会遇到冲突。
And if you want to use composer only to manage your main repository and handle the sub repositories by yourself you miss the advantage of composer. 而且,如果您仅想使用composer来管理主存储库并自己处理子存储库,那么您会错过composer的优势。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TYPO3-将fileadmin放在独立的git存储库中吗? - TYPO3 - putting of fileadmin in an standalone git repository? 如何使用composer安装git存储库的一部分? - How to use composer to install part of a git repository? TYPO3 + 作曲家 + 部署 - TYPO3 + Composer + Deployment 如何将git 1存储库升级到git 2存储库? - How can I upgrade a git 1 repository to a git 2 one? 我如何使用Git和Git Extensions? - How do I use Git and Git Extensions? 如何告诉composer将哪个键用于给定的composer存储库? - How can I tell composer which key to use for a given composer repository? 如何在父git项目中使用git存储库? - How can I use a git repository in my parent git project? 如何使用VisualStudio git扩展使用密码访问来访问远程存储库? - How do I use VisualStudio git extensions to access remote repository using password access? 我怎样才能让多个项目在一个 GitHub 存储库中拥有自己的本地 git 存储库? - How can I have multiple projects with their own local git repositories in one GitHub repository? 如果我必须 git 克隆整个项目并使用“vsce 包”生成它,如何生成与 vscode 扩展中的相同的 VSIX 文件? - How can I generate the same VSIX file as the one in vscode extensions if I had to git clone the whole project and use “vsce package” to generate it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM