1

对于早期的 TYPO3 版本,通过 composer 更新 TYPO3 很容易:

composer update typo3/cms --with-dependencies

在子树拆分和 TYPO3 9.5 之后,更新应该根据文档如下进行:

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": {
    }
}

知道我做错了什么吗?

4

3 回答 3

3

看起来这是作曲家中的一个已知错误。https://github.com/composer/composer/issues/7261

我会调查并回来的。

于 2018-12-12T09:32:04.593 回答
1

您可以尝试composer why-not typo3/cms-core:9.5.2获取更多信息

于 2018-12-12T08:44:42.733 回答
0

我有这个问题。请运行composer update --with-dependencies。这对我行得通。

于 2018-12-12T09:32:13.407 回答