作曲家为什么不是没有帮助 - 为什么我不安装此软件包



i不需要Contao项目中的以下软件包。

$ php composer.phar require -v con4gis/con4gis_forum
Using version ^1.7 for con4gis/con4gis_forum
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.026 seconds
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Conclusion: don't install con4gis/con4gis_forum v1.7.1
    - Installation request for con4gis/con4gis_forum ^1.7 -> satisfiable by con4gis/con4gis_forum[v1.7.0, v1.7.1].
    - con4gis/con4gis_forum v1.7.0 requires con4gis/con4gis_core ~1.7 -> satisfiable by con4gis/con4gis_core[v1.7.0, v1.7.1].
    - con4gis/con4gis_core v1.7.0 requires menatwork/contao-multicolumnwizard 3.3.8 -> satisfiable by menatwork/contao-multicolumnwizard[3.3.8].
    - con4gis/con4gis_core v1.7.1 requires menatwork/contao-multicolumnwizard 3.3.8 -> satisfiable by menatwork/contao-multicolumnwizard[3.3.8].
    - Conclusion: don't install menatwork/contao-multicolumnwizard 3.3.8

$ php composer.phar why-not menatwork/contao-multicolumnwizard
contao-legacy/semantic_html5      1.1.7.9014    requires  contao-legacy/multicolumnwizard (>=3.0.0,<4.0.0-dev)  
metamodels/attribute_alias        2.0.0-alpha2  requires  menatwork/contao-multicolumnwizard (~3.3)             
metamodels/core                   2.0.0-alpha9  requires  menatwork/contao-multicolumnwizard (~3.3)             
psi/news4ward                     2.2.3         requires  menatwork/contao-multicolumnwizard (~3)               
terminal42/contao-changelanguage  3.1.0         requires  menatwork/contao-multicolumnwizard (^3.3)     

我检查了为什么不为何不打印的所有需求,3.3.8已经是绿色的,即在https://semver.mwl.be/#?package=menatwork/contao2fcontao-multicolumnwizard&version = version =;最小稳定性=稳定

发生了什么事?

删除composer.lock也没有帮助。

作曲家版本是最新的稳定。

composer.json

{
    "name": "local/website",
    "description": "A local website project",
    "type": "project",
    "license": "proprietary",
    "require": {
    "cgo-it/news4ward-rateit": "dev-master",
    "contao-legacy/ce_page_teaser": "~1.5",
    "contao-legacy/efg": ">=2.2.1.9005,<2.3-dev",
    "contao-legacy/om_searchkeys": "~1.0",
    "contao-legacy/rocksolid-columns": ">=1.0.6.9006,<1.1-dev",
    "contao-legacy/semantic_html5": ">=1.1.7.9014,<1.2-dev",
    "contao-legacy/survey_ce": "3.0.2.9003",
    "imi/imi_mm_changelanguage": "*",
    "jakeasmith/http_build_url": "^1",
    "madeyourday/contao-rocksolid-columns": ">=1.0.7.0,<1.1-dev",
    "metamodels/bundle_all": "dev-master",
    "phpoffice/phpexcel": "dev-master",
    "psi/news4ward": ">=2.2.3.0,<2.3-dev",
    "psi/news4ward_archive-menu": "2.0.8",
    "psi/news4ward_author-menu": "2.0.2",
    "psi/news4ward_comments": "2.1.0",
    "psi/news4ward_metatitle": "dev-master#d2c09fb47441c05011ddcc5b08e54aae138a8ab7",
    "psi/news4ward_mostread": "2.1.0",
    "psi/news4ward_multicategories": "1.0.5",
    "psi/news4ward_related": "2.1.0",
    "psi/news4ward_tags": "2.1.1",
    "contao-community-alliance/dc-general": "^2.0.0-beta32",
    "querypath/QueryPath": "^3.0",
    "terminal42/contao-changelanguage": "^3.1",
    "contao-community-alliance/composer-client": "~0.14",
    "delahaye/dlh_googlemaps": "^2.2",
    "contao-legacy/inputvar": "1.1.1.9048"
    },
    "prefer-stable": true,
    "minimum-stability": "dev",
    "config": {
    "preferred-install": "dist",
    "cache-dir": "cache",
    "component-dir": "../assets/components"
    },
    "repositories": [
    {
        "type": "artifact",
        "url": "packages"
    },
    {
        "type": "composer",
        "url": "https://legacy-packages-via.contao-community-alliance.org/"
    }
    ],
    "extra": {
    "contao": {
        "migrated": "done"
    }
    }
}

将您的composer.json复制到本地文件,从中删除artifact存储库,然后运行composer install会导致一条消息,即找不到legacy/survey_ce 3.0.2.9003。但是,据报道3.0.2.9005可用,所以我继续这样做。

运行composer install再次导致可分解的依赖关系集。再次运行composer require命令再次导致您收到的相同错误消息。我认为我现在在同一地点。

运行composer show列出所有已安装的软件包,揭示了有问题的软件包已安装在版本3.3.10中。

menatwork/contao-multicolumnwizard               3.3.10             MultiColumWizard for Contao OpenSource CMS

解释了为什么无法安装依赖关系,因为作曲家通常不会使已经安装的软件包降级。但是,给出的提示并没有真正解释发生了什么。

正如我在评论中提到的那样,您应该尝试立即大修您的依赖性:

  1. 您取决于固定版本。检查是否可以放松版本号以允许兼容更新。如果图书馆的作者声明他们支持语义版本,这是最简单的,如果他们还声明他们明确不支持它,如果他们也说明如何进行补丁,也很容易。
  2. 您取决于dev-master版本。根据分支机构的不同,将在某个时候打破您的项目!检查您使用的库是否已发布了标记版本。检查您当前正在引用最接近的版本。将您的依赖性从dev-master更改为该版本(包括第一点所讨论的兼容更新),看看您的项目是否仍然有效。
  3. 您也取决于废弃版本。您应该将依赖性升级到引用的软件包 - 但是,这绝不是一定毫不费力的转换,可能需要一些更改。但这将有助于减少所涉及的软件包的数量,因为似乎许多contao-legacy LIB被重新发布为menatwork,并且确实会获取更新。这些库应该可以切换。

相关内容

  • 没有找到相关文章

最新更新