-1

この composer.json で composer パッケージを作成しました

{
    "name": "webiny/cache",
    "type": "library",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "jamm/memory": "dev-master"
    },
    "require-dev": {
        "phpunit/phpunit": "4.1.*"
    },
    "autoload": {
        "psr-4": {
            "Webiny\\Component\\Cache\\": ""
        }
    },
    "extras": {
        "branches": {
            "dev-master": "~0.9"
        }
    }
}

jamm/memoryこのファイルに composer install を実行すると、パッケージの解決に問題が発生します。

{
    "require": {
        "webiny/cache": "dev-master"
    }
}

私が得るエラーは

  Problem 1
    - Installation request for webiny/cache dev-master -> satisfiable by webiny/cache[dev-master].
    - webiny/cache dev-master requires jamm/memory dev-master -> no matching package found.

ifをインストールしようとすると、正常にjamm/memory動作します。

{
    "require": {
        "jamm/memory": "dev-master"
    }
}

minimum-stabilityフラグを in に設定してdevwebiny\cacheます。また、リリースを依存関係に設定しようとし@devましたjamm/memory...助けにはなりませんでした。

何が間違っているのかわかりません。

4

1 に答える 1

0

Solved it.... I added the minimum-stability flag to the composer.json file that I used to install the libraries...not just on the composer.json file that is used to define a package.

于 2014-08-30T18:43:36.740 に答える