我有一个基于作曲家的TYPO3安装,它包含一个私有的gitlab存储库。私有git存储库应该作为dev-master (作为一个真正的存储库)使用,这样我就可以在内部进行开发了。但是composer只检出主存储库文件,但没有.git文件夹。
有什么线索吗?在其他一些项目中,这可以像预期的那样工作。
我的composer.json:
{
"name": "my-vendor/my-project",
"description" : "TYPO3 CMS Website",
"license": "GPL-2.0-or-later",
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"platform-check": false,
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true,
"captainhook/plugin-composer": true
}
},
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" },
{ "type": "path", "url": "./packages/*" },
{ "type": "vcs", "url": "git@gitlab.com:myvendor/typo3-amp.git" }
],
"require": {
"typo3/cms-about": "^11.0",
"typo3/cms-backend": "^11.0",
"typo3/cms-belog": "^11.0",
"typo3/cms-beuser": "^11.0",
"typo3/cms-core": "^11.0",
"typo3/cms-dashboard": "^11.0",
"typo3/cms-extbase": "^11.0",
"typo3/cms-extensionmanager": "^11.0",
"typo3/cms-felogin": "^11.0",
"typo3/cms-filelist": "^11.0",
"typo3/cms-fluid": "^11.0",
"typo3/cms-fluid-styled-content": "^11.0",
"typo3/cms-form": "^11.0",
"typo3/cms-frontend": "^11.0",
"typo3/cms-info": "^11.0",
"typo3/cms-install": "^11.0",
"typo3/cms-lowlevel": "^11.0",
"typo3/cms-opendocs": "^11.0",
"typo3/cms-recordlist": "^11.0",
"typo3/cms-recycler": "^11.0",
"typo3/cms-redirects": "^11.0",
"typo3/cms-reports": "^11.0",
"typo3/cms-rte-ckeditor": "^11.0",
"typo3/cms-scheduler": "^11.0",
"typo3/cms-seo": "^11.0",
"typo3/cms-setup": "^11.0",
"typo3/cms-sys-note": "^11.0",
"typo3/cms-t3editor": "^11.0",
"typo3/cms-tstemplate": "^11.0",
"typo3/cms-viewpage": "^11.0",
"helhum/typo3-console": "~7.0",
"my-vendor/sitepackage": "@dev",
"my-vendor/amp": "dev-master as 2.0.0",
"ext-simplexml": "*",
"ext-pdo": "*",
"ext-zip": "*",
"ext-libxml": "*",
"ext-curl": "*",
"ext-gd": "*",
"ext-json": "*"
},
"require-dev": {
"phpstan/phpstan": "^0.12.98",
"saschaegerer/phpstan-typo3": "^0.13.3",
"friendsofphp/php-cs-fixer": "^3.0",
"captainhook/captainhook": "^5.10",
"captainhook/plugin-composer": "^5.3",
"rector/rector": "0.11.53"
},
"extra": {
"captainhook": {
"force-install": true
}
},
"scripts": {
"php-cs-fixer": "vendor/bin/php-cs-fixer fix packages",
"phpstan": "vendor/bin/phpstan analyse",
"rector": "vendor/bin/rector process packages",
"ci": [
"@php-cs-fixer",
"@phpstan",
"@rector"
]
}
}发布于 2022-02-07 07:43:58
让我们来看看手册
如果在github存储库上将no-api键设置为true,它将像对任何其他GitHub存储库一样克隆存储库,而不是使用git。但与直接使用git驱动程序不同,Composer仍将尝试使用github的zip文件。
简单的技巧似乎不是使用vcs驱动程序,而是使用git驱动程序进行私人回购.
发布于 2022-02-07 06:36:42
你能试一试以下几点吗?
将此添加到composer.json中
"preferred-install": {
"my-vendor/amp": "source"
}然后使用rm typo3conf/ext/amp删除包,然后执行composer install
https://stackoverflow.com/questions/71010684
复制相似问题