需要通过作曲家进行本地打包时出错

时间:2018-09-26 06:55:41

标签: composer-php

我有两个symfony4应用程序offer / manage和offer / fetcher,现在,我想将offer / manage作为主要项目,将offer / fetcher用作offer / management的本地依赖项。所以我创建了单独的目录:

  1. 具有自己的composer.json的报价管理
  2. 具有自己的composer.json的offer-fetcher

这是要约/获取者的composer.json:

{
    "name": "offer/fetcher",
    "type": "project",
    "version": "1.0.0",
    "license": "proprietary",
    "require": {
        "php": "^7.1.3",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "nelmio/api-doc-bundle": "^3.3",
        "symfony/console": "*",
        "symfony/flex": "^1.1",
        "symfony/framework-bundle": "*",
        "symfony/messenger": "*",
        "symfony/monolog-bundle": "^3.3",
        "symfony/orm-pack": "^1.0",
        "symfony/yaml": "*"
    },
    "require-dev": {
        "symfony/test-pack": "^1.0",
        "symfony/web-server-bundle": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "AppOffersFetcher\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "AppOffersFetcher\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd",
            "security-checker security:check": "script"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "4.1.*"
        }
    }
}

这是要约/管理的composer.json:

{
    "name": "offer/management",
    "type": "project",
    "license": "proprietary",
    "repositories": [
        {
            "type": "path",
            "url": "../offer-fetcher"
        }
    ],
    "require": {
        "offer/fetcher": "^1.0",
        "php": "^7.1.3",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "nelmio/api-doc-bundle": "^3.3",
        "symfony/console": "*",
        "symfony/flex": "^1.1",
        "symfony/framework-bundle": "*",
        "symfony/messenger": "*",
        "symfony/monolog-bundle": "^3.3",
        "symfony/orm-pack": "^1.0",
        "symfony/yaml": "*"
    },
    "require-dev": {
        "symfony/test-pack": "^1.0",
        "symfony/web-server-bundle": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "OfferManagement\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "OfferManagement\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd",
            "security-checker security:check": "script"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "4.1.*"
        }
    }
}

,当我从offer-management运行composer install时的错误是:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for offer/management dev-master -> satisfiable by offer/management[dev-master].
    - don't install offer/fetcher 1.0.0|remove offer/management dev-master
    - Installation request for offer/fetcher ^1.0 -> satisfiable by offer/fetcher[1.0.0].

0 个答案:

没有答案