使用早期的TYPO3版本,通过composer进行TYPO3更新很容易:
composer update typo3/cms --with-dependencies
在子树拆分后,使用TYPO3 9.5,应按照documentation进行如下更新:
composer update "typo3/cms-*" --with-dependencies
不幸的是,这不起作用:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
对此也适用(我使用的是zsh,因此需要对通配符进行转义):
composer update typo3/cms-\* --with-dependencies
但是肯定有需要更新的东西:
composer update --dry-run
具有以下结果:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 39 updates, 0 removals
- Updating helhum/typo3-console-plugin (2.0.4) to helhum/typo3-console-plugin (v2.0.5)
- Updating symfony/process (v4.1.7) to symfony/process (v4.2.1)
- Installing symfony/contracts (v1.0.2)
- Updating symfony/console (v4.1.7) to symfony/console (v4.2.1)
- Updating symfony/intl (v4.1.7) to symfony/intl (v4.2.1)
- Installing ralouphie/getallheaders (2.0.5)
- Updating guzzlehttp/psr7 (1.4.2) to guzzlehttp/psr7 (1.5.2)
- Updating typo3/cms-core (v9.5.1) to typo3/cms-core (v9.5.2)
- Updating symfony/yaml (v4.1.7) to symfony/yaml (v4.2.1)
- Updating symfony/finder (v4.1.7) to symfony/finder (v4.2.1)
- Updating typo3/cms-recordlist (v9.5.1) to typo3/cms-recordlist (v9.5.2)
- Updating symfony/routing (v4.1.7) to symfony/routing (v4.2.1)
- Installing symfony/var-exporter (v4.2.1)
- Updating symfony/cache (v4.1.7) to symfony/cache (v4.2.1)
- Updating symfony/expression-language (v4.1.7) to symfony/expression-language (v4.2.1)
- Updating psr/http-server-middleware (1.0.0) to psr/http-server-middleware (1.0.1)
- Updating doctrine/persistence (v1.0.1) to doctrine/persistence (v1.1.0)
- Updating doctrine/common (v2.9.0) to doctrine/common (v2.10.0)
- Updating typo3/cms-extbase (v9.5.1) to typo3/cms-extbase (v9.5.2)
- Updating typo3/cms-fluid (v9.5.1) to typo3/cms-fluid (v9.5.2)
- Updating typo3/cms-install (v9.5.1) to typo3/cms-install (v9.5.2)
- Updating typo3/cms-frontend (v9.5.1) to typo3/cms-frontend (v9.5.2)
- Updating typo3/cms-filelist (v9.5.1) to typo3/cms-filelist (v9.5.2)
- Updating typo3/cms-extensionmanager (v9.5.1) to typo3/cms-extensionmanager (v9.5.2)
- Updating typo3/cms-backend (v9.5.1) to typo3/cms-backend (v9.5.2)
- Updating doctrine/instantiator (1.0.5) to doctrine/instantiator (1.1.0)
- Updating typo3/cms-belog (v9.5.1) to typo3/cms-belog (v9.5.2)
- Updating typo3/cms-scheduler (v9.5.1) to typo3/cms-scheduler (v9.5.2)
- Updating typo3/cms-adminpanel (v9.5.1) to typo3/cms-adminpanel (v9.5.2)
- Updating typo3/cms-tstemplate (v9.5.1) to typo3/cms-tstemplate (v9.5.2)
- Updating typo3/cms-sys-note (v9.5.1) to typo3/cms-sys-note (v9.5.2)
- Updating typo3/cms-setup (v9.5.1) to typo3/cms-setup (v9.5.2)
- Updating typo3/cms-recycler (v9.5.1) to typo3/cms-recycler (v9.5.2)
- Updating typo3/cms-rte-ckeditor (v9.5.1) to typo3/cms-rte-ckeditor (v9.5.2)
- Updating typo3/cms-reports (v9.5.1) to typo3/cms-reports (v9.5.2)
- Updating typo3/cms-opendocs (v9.5.1) to typo3/cms-opendocs (v9.5.2)
- Updating typo3/cms-lowlevel (v9.5.1) to typo3/cms-lowlevel (v9.5.2)
- Updating typo3/cms-info (v9.5.1) to typo3/cms-info (v9.5.2)
- Updating typo3/cms-fluid-styled-content (v9.5.1) to typo3/cms-fluid-styled-content (v9.5.2)
- Updating typo3/cms-beuser (v9.5.1) to typo3/cms-beuser (v9.5.2)
- Updating typo3/cms-seo (v9.5.1) to typo3/cms-seo (v9.5.2)
- Installing symfony/filesystem (v4.2.1)
- Installing symfony/config (v4.2.1)
- Updating helhum/config-loader (v0.11.0) to helhum/config-loader (v0.11.1)
symfony/contracts suggests installing symfony/service-contracts-implementation ()
symfony/contracts suggests installing symfony/translation-contracts-implementation ()
我的composer.json
如下:
{
"repositories": [
{ "type": "path", "url": "packages/*/" },
{ "type": "git", "url": "https://github.com/peterkraume/cbgooglemaps.git" },
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0+",
"config": {
"platform": {
"php": "7.2"
}
},
"require": {
"helhum/typo3-console": "^5.0",
"typo3/cms-belog": "^9.5",
"typo3/cms-beuser": "^9.5",
"typo3/cms-fluid-styled-content": "^9.5",
"typo3/cms-info": "^9.5",
"typo3/cms-info-pagetsconfig": "^9.5",
"typo3/cms-lowlevel": "^9.5",
"typo3/cms-opendocs": "^9.5",
"typo3/cms-reports": "^9.5",
"typo3/cms-rte-ckeditor": "^9.5",
"typo3/cms-recycler": "^9.5",
"typo3/cms-setup": "^9.5",
"typo3/cms-sys-note": "^9.5",
"typo3/cms-tstemplate": "^9.5",
"typo3/cms-wizard-crpages": "^9.5",
"kws/kws-theme-zmg": "@dev",
"typo3-console/composer-auto-commands": "^0.2.0",
"helhum/typo3-secure-web": "^0.2.7",
"friendsoftypo3/cms-func": "^9.0",
"typo3/cms-adminpanel": "^9.5",
"yoast-seo-for-typo3/yoast_seo": "^4.0",
"brinkert/cbgooglemaps": "dev-jquery",
"cweagans/composer-patches": "^1.6"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "public",
"root-dir": "private"
},
"helhum/typo3-console": {
"install-extension-dummy": "0"
}
},
"require-dev": {
}
}
知道我在做什么错吗?
答案 0 :(得分:2)
这似乎是作曲家中的一个已知错误。 https://github.com/composer/composer/issues/7261
我将进行调查,然后回来。
答案 1 :(得分:1)
您可以尝试composer why-not typo3/cms-core:9.5.2
获取更多信息
答案 2 :(得分:0)
我遇到了一些问题。请运行composer update --with-dependencies
。对我有用。