wikimedia / composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
MIT License
934 stars 159 forks source link

Have to run the command twice if the composer.json is from vendors #149

Closed soullivaneuh closed 7 years ago

soullivaneuh commented 7 years ago

Because the composer.json does not exist at the first time.

My composer.json file:

{
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "prestashop/prestashop",
                "type": "webroot",
                "version": "1.7.1.1",
                "dist": {
                    "type": "zip",
                    "url": "https://github.com/PrestaShop/PrestaShop/archive/1.7.1.1.zip"
                }
            }
        }
    ],
    "require": {
        "prestashop/prestashop": "^1.7",
        "wikimedia/composer-merge-plugin": "^1.4",
        "slowprog/composer-copy-file": "^0.2.0"
    },
    "scripts": {
        "post-install-cmd": [
            "./configure"
        ],
        "post-update-cmd": [
            "./configure"
        ]
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "extra": {
        "merge-plugin": {
            "require": [
                "vendor/prestashop/prestashop/composer.json"
            ],
            "merge-dev": false,
            "ignore-duplicates": true
        }
    }
}

Commands: See https://github.com/wikimedia/composer-merge-plugin/issues/149#issuecomment-306842963

Maybe the script is not called at the right moment?

soullivaneuh commented 7 years ago

In fact, this is because the vendor folder does not exist yet:

First run:

$ ./docker-console composer update --prefer-dist
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
  - Installing wikimedia/composer-merge-plugin (v1.4.0): Loading from cache
  - Installing prestashop/prestashop (1.7.1.1): Loading from cache
  - Installing slowprog/composer-copy-file (0.2.0): Loading from cache

Second run (targeted composer.json is on prestashop package):

$ ./docker-console composer update --prefer-dist
    1/2:    http://packagist.org/p/provider-latest$0fcb8f83c9a256696ec292af876cd6f067b1cae676ac13ffba427bc68e4db384.json
    2/2:    http://packagist.org/p/provider-2017-04$dbf25cfb02dfe0981d30d094791f921dd888475111d18c5aba28f78b2bcb6ca8.json
    Finished: success: 2, skipped: 0, failure: 0, total: 2
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 122 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.0.21): Loading from cache
  - Installing doctrine/cache (v1.6.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.3.0): Loading from cache
  - Installing twig/twig (v1.34.2): Loading from cache
  - Installing symfony/security-acl (v3.0.0): Loading from cache
  - Installing symfony/symfony (v2.8.21): Loading from cache
  - Installing symfony/polyfill-util (v1.3.0): Loading from cache
  - Installing paragonie/random_compat (v2.0.10): Loading from cache
  - Installing symfony/polyfill-php70 (v1.3.0): Loading from cache
  - Installing symfony/polyfill-php56 (v1.3.0): Loading from cache
  - Installing ircmaxell/password-compat (v1.0.4): Loading from cache
  - Installing symfony/polyfill-php55 (v1.3.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/polyfill-php54 (v1.3.0): Loading from cache
  - Installing symfony/polyfill-intl-icu (v1.3.0): Loading from cache
  - Installing symfony/polyfill-apcu (v1.3.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing doctrine/annotations (v1.4.0): Loading from cache
  - Installing doctrine/common (v2.5.3): Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.0): Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
  - Installing doctrine/dbal (v2.5.12): Loading from cache
  - Installing doctrine/doctrine-bundle (v1.5.2): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.8): Loading from cache
  - Installing symfony/swiftmailer-bundle (v2.3.11): Loading from cache
  - Installing monolog/monolog (1.22.1): Loading from cache
  - Installing symfony/monolog-bundle (v2.8.2): Loading from cache
  - Installing sensio/framework-extra-bundle (v3.0.10): Loading from cache
  - Installing nikic/php-parser (v2.1.1): Loading from cache
  - Installing prestashop/smarty (dev-master c141c2a): Loading from cache
  - Installing prestashop/translationtools-bundle (dev-master d197eba): Loading from cache
  - Installing tecnickcom/tcpdf (6.2.12): Loading from cache
  - Installing icanboogie/datetime (v1.1.1): Loading from cache
  - Installing icanboogie/common (v1.2.2.1): Loading from cache
  - Installing icanboogie/cldr (v1.3.9): Loading from cache
  - Installing curl/curl (1.2.1): Loading from cache
  - Installing shudrum/array-finder (v1.1.0): Loading from cache
  - Installing phpoffice/phpexcel (1.8.0): Loading from cache
  - Installing prestashop/blockreassurance (dev-master 9a3d6fb): Loading from cache
  - Installing prestashop/contactform (dev-master 5ba81c6): Loading from cache
  - Installing prestashop/dashactivity (dev-master dd66459): Loading from cache
  - Installing prestashop/dashgoals (dev-master 555ebc2): Loading from cache
  - Installing prestashop/dashproducts (dev-master 7871fe8): Loading from cache
  - Installing prestashop/graphnvd3 (dev-master c7f98ea): Loading from cache
  - Installing prestashop/gridhtml (dev-master b952ef9): Loading from cache
  - Installing prestashop/pagesnotfound (dev-master 8707d81): Loading from cache
  - Installing prestashop/ps_banner (dev-master 078ffe9): Loading from cache
  - Installing prestashop/ps_categorytree (dev-master f3a23af): Loading from cache
  - Installing prestashop/ps_checkpayment (dev-master becd361): Loading from cache
  - Installing prestashop/ps_contactinfo (dev-master 9b5f2d0): Loading from cache
  - Installing prestashop/ps_currencyselector (dev-master 0985c9a): Loading from cache
  - Installing prestashop/ps_customeraccountlinks (dev-master e8dce43): Loading from cache
  - Installing prestashop/ps_customersignin (dev-master edfc10f): Loading from cache
  - Installing prestashop/ps_customtext (dev-master 56fdf8e): Loading from cache
  - Installing prestashop/ps_emailsubscription (dev-master 1cfa769): Loading from cache
  - Installing prestashop/ps_facetedsearch (dev-master 67889e6): Loading from cache
  - Installing prestashop/ps_featuredproducts (dev-master 9b69551): Loading from cache
  - Installing prestashop/ps_imageslider (dev-master c2272a2): Loading from cache
  - Installing prestashop/ps_languageselector (dev-master edca0f3): Loading from cache
  - Installing prestashop/ps_legalcompliance (dev-master c153e94): Loading from cache
  - Installing prestashop/ps_linklist (dev-master 973a866): Loading from cache
  - Installing prestashop/ps_mainmenu (dev-master f652785): Loading from cache
  - Installing prestashop/ps_searchbar (dev-master ae165e9): Loading from cache
  - Installing prestashop/ps_sharebuttons (dev-master 3ffb0b3): Loading from cache
  - Installing prestashop/ps_shoppingcart (dev-master 4830efa): Loading from cache
  - Installing prestashop/ps_socialfollow (dev-master ffa1c3a): Loading from cache
  - Installing prestashop/ps_wirepayment (dev-master a540bf6): Loading from cache
  - Installing prestashop/sekeywords (dev-master f174c05): Loading from cache
  - Installing prestashop/statsbestcategories (dev-master 5bd28a7): Loading from cache
  - Installing prestashop/statsbestcustomers (dev-master 7f247ce): Loading from cache
  - Installing prestashop/statsbestmanufacturers (dev-master b9897be): Loading from cache
  - Installing prestashop/statsbestproducts (dev-master 0ed33cd): Loading from cache
  - Installing prestashop/statsbestsuppliers (dev-master 7e46e73): Loading from cache
  - Installing prestashop/statsbestvouchers (dev-master c8ee93e): Loading from cache
  - Installing prestashop/statscarrier (dev-master 3ccfe39): Loading from cache
  - Installing prestashop/statscatalog (dev-master be6be71): Loading from cache
  - Installing prestashop/statscheckup (dev-master b6371ad): Loading from cache
  - Installing prestashop/statsdata (dev-master 31c4c8a): Loading from cache
  - Installing prestashop/statsequipment (dev-master 4b0c3f7): Loading from cache
  - Installing prestashop/statsforecast (dev-master 41476d3): Loading from cache
  - Installing prestashop/statslive (dev-master 70d7d3e): Loading from cache
  - Installing prestashop/statsnewsletter (dev-master 3fe8b5e): Loading from cache
  - Installing prestashop/statsorigin (dev-master 8dfc5e0): Loading from cache
  - Installing prestashop/statspersonalinfos (dev-master e6cf5a6): Loading from cache
  - Installing prestashop/statsproduct (dev-master 3013cd7): Loading from cache
  - Installing prestashop/statsregistrations (dev-master 51d79fb): Loading from cache
  - Installing prestashop/statssales (dev-master 6e28ce4): Loading from cache
  - Installing prestashop/statssearch (dev-master 6375e91): Loading from cache
  - Installing prestashop/statsstock (dev-master 1b60aae): Loading from cache
  - Installing prestashop/statsvisits (dev-master 730b39f): Loading from cache
  - Installing prestashop/welcome (dev-master a3c7678): Loading from cache
  - Installing prestashop/dashtrends (dev-master 2bf59be): Loading from cache
  - Installing defuse/php-encryption (2.0.3): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing doctrine/orm (v2.5.6): Loading from cache
  - Installing composer/ca-bundle (1.0.7): Loading from cache
  - Installing maxmind/web-service-common (v0.3.1): Loading from cache
  - Installing maxmind-db/reader (v1.1.3): Loading from cache
  - Installing geoip2/geoip2 (v2.4.5): Loading from cache
  - Installing mrclay/minify (2.3.1): Loading from cache
  - Installing matthiasmullie/path-converter (1.1.0): Loading from cache
  - Installing matthiasmullie/minify (1.3.44): Loading from cache
  - Installing jakeasmith/http_build_url (1.0.1): Loading from cache
  - Installing mobiledetect/mobiledetectlib (2.8.25): Loading from cache
  - Installing pear/pear_exception (v1.0.0): Loading from cache
  - Installing pear/console_getopt (v1.4.1): Loading from cache
  - Installing pear/pear-core-minimal (v1.10.3): Loading from cache
  - Installing pear/archive_tar (1.4.2): Loading from cache
  - Installing sensiolabs/security-checker (v3.0.7): Loading from cache
  - Installing sensio/distribution-bundle (v4.0.38): Loading from cache
  - Installing incenteev/composer-parameter-handler (v2.1.2): Loading from cache
  - Installing ircmaxell/security-lib (v1.1.0): Loading from cache
  - Installing ircmaxell/random-lib (v1.2.0): Loading from cache
  - Installing react/promise (v2.5.1): Loading from cache
  - Installing guzzlehttp/streams (3.0.0): Loading from cache
  - Installing guzzlehttp/ringphp (1.1.0): Loading from cache
  - Installing guzzlehttp/guzzle (5.3.1): Loading from cache
  - Installing guzzlehttp/log-subscriber (1.0.1): Loading from cache
  - Installing csa/guzzle-bundle (v1.3.11): Loading from cache
  - Installing beberlei/doctrineextensions (v1.0.16): Loading from cache

I'll update the issue.

bd808 commented 7 years ago

Recursively processing files installed via Composer is not a use-case that composer-merge-plugin is intended to solve.

By declaring the custom repo as type "package" you have explicitly told Composer not to do anything beyond unpacking a zip archive. Instead you should be declaring the repo as type "vcs" and letting Composer do what it does normally:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/PrestaShop/PrestaShop"
    }
  ],
  "require": {
    "prestashop/prestashop": "^1.7"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}
$ composer install --prefer-dist
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 123 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.0.21): Downloading (100%)
  - Installing nikic/php-parser (v2.1.1): Downloading (100%)
  - Installing composer/ca-bundle (1.0.7): Downloading (100%)
  - Installing beberlei/doctrineextensions (v1.0.16): Downloading (100%)          - Installing prestashop/dashtrends (dev-master 2bf59be): Downloading (100%)     - Installing prestashop/welcome (dev-master a3c7678): Downloading (100%)        - Installing prestashop/statsvisits (dev-master 730b39f): Downloading (100%)    - Installing prestashop/statsstock (dev-master 1b60aae): Downloading (100%)     - Installing prestashop/statssearch (dev-master 6375e91): Downloading (100%)    - Installing prestashop/statssales (dev-master 6e28ce4): Downloading (100%)     - Installing prestashop/statsregistrations (dev-master 51d79fb): Downloading (100%)
  - Installing prestashop/statsproduct (dev-master 3013cd7): Downloading (100%)   - Installing prestashop/statspersonalinfos (dev-master e6cf5a6): Downloading (100%)
  - Installing prestashop/statsorigin (dev-master 8dfc5e0): Downloading (100%)    - Installing prestashop/statsnewsletter (dev-master 3fe8b5e): Downloading (100%)
  - Installing prestashop/statslive (dev-master 70d7d3e): Downloading (100%)      - Installing prestashop/statsforecast (dev-master 41476d3): Downloading (100%)
  - Installing prestashop/statsequipment (dev-master 4b0c3f7): Downloading (100%)
  - Installing prestashop/statsdata (dev-master 31c4c8a): Downloading (100%)      - Installing prestashop/statscheckup (dev-master b6371ad): Downloading (100%)   - Installing prestashop/statscatalog (dev-master be6be71): Downloading (100%)   - Installing prestashop/statscarrier (dev-master 3ccfe39): Downloading (100%)   - Installing prestashop/statsbestvouchers (dev-master c8ee93e): Downloading (100%)
  - Installing prestashop/statsbestsuppliers (dev-master 7e46e73): Downloading (100%)
  - Installing prestashop/statsbestproducts (dev-master 0ed33cd): Downloading (100%)
  - Installing prestashop/statsbestmanufacturers (dev-master b9897be): Downloading (100%)
  - Installing prestashop/statsbestcustomers (dev-master 7f247ce): Downloading (100%)
  - Installing prestashop/statsbestcategories (dev-master 5bd28a7): Downloading (100%)
  - Installing prestashop/sekeywords (dev-master f174c05): Downloading (100%)     - Installing prestashop/ps_wirepayment (dev-master a540bf6): Downloading (100%)
  - Installing prestashop/ps_socialfollow (dev-master ffa1c3a): Downloading (100%)
  - Installing prestashop/ps_shoppingcart (dev-master 4830efa): Downloading (100%)
  - Installing prestashop/ps_sharebuttons (dev-master 3ffb0b3): Downloading (100%)
  - Installing prestashop/ps_searchbar (dev-master ae165e9): Downloading (100%)   - Installing prestashop/ps_mainmenu (dev-master f652785): Downloading (100%)    - Installing prestashop/ps_linklist (dev-master 973a866): Downloading (100%)    - Installing prestashop/ps_legalcompliance (dev-master c153e94): Downloading (100%)
  - Installing prestashop/ps_languageselector (dev-master edca0f3): Downloading (100%)
  - Installing prestashop/ps_imageslider (dev-master c2272a2): Downloading (100%)
  - Installing prestashop/ps_featuredproducts (dev-master 9b69551): Downloading (100%)
  - Installing prestashop/ps_facetedsearch (dev-master 67889e6): Downloading (100%)
  - Installing prestashop/ps_emailsubscription (dev-master 1cfa769): Downloading (100%)
  - Installing prestashop/ps_customtext (dev-master 56fdf8e): Downloading (100%)
  - Installing prestashop/ps_customersignin (dev-master edfc10f): Downloading (100%)
  - Installing prestashop/ps_customeraccountlinks (dev-master e8dce43): Downloading (100%)
  - Installing prestashop/ps_currencyselector (dev-master 0985c9a): Downloading (100%)
  - Installing prestashop/ps_contactinfo (dev-master 9b5f2d0): Downloading (100%)
  - Installing prestashop/ps_checkpayment (dev-master becd361): Downloading (100%)
  - Installing prestashop/ps_categorytree (dev-master f3a23af): Downloading (100%)
  - Installing prestashop/ps_banner (dev-master 078ffe9): Downloading (100%)      - Installing prestashop/pagesnotfound (dev-master 8707d81): Downloading (100%)
  - Installing prestashop/gridhtml (dev-master b952ef9): Downloading (100%)       - Installing prestashop/graphnvd3 (dev-master c7f98ea): Downloading (100%)      - Installing prestashop/dashproducts (dev-master 7871fe8): Downloading (100%)   - Installing prestashop/dashgoals (dev-master 555ebc2): Downloading (100%)      - Installing prestashop/dashactivity (dev-master dd66459): Downloading (100%)   - Installing prestashop/contactform (dev-master 5ba81c6): Downloading (100%)    - Installing prestashop/blockreassurance (dev-master 9a3d6fb): Downloading (100%)
  - Installing prestashop/smarty (dev-master c141c2a): Downloading (100%)         - Installing paragonie/random_compat (v2.0.10): Downloading (100%)
  - Installing twig/twig (v1.34.3): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.4.0): Downloading (100%)
  - Installing symfony/security-acl (v3.0.0): Downloading (100%)
  - Installing symfony/symfony (v2.8.22): Downloading (100%)
  - Installing symfony/polyfill-util (v1.4.0): Downloading (100%)
  - Installing symfony/polyfill-php70 (v1.4.0): Downloading (100%)
  - Installing symfony/polyfill-php56 (v1.4.0): Downloading (100%)
  - Installing ircmaxell/password-compat (v1.0.4): Downloading (100%)
  - Installing symfony/polyfill-php55 (v1.4.0): Downloading (100%)
  - Installing psr/log (1.0.2): Downloading (100%)
  - Installing symfony/polyfill-php54 (v1.4.0): Downloading (100%)
  - Installing symfony/polyfill-intl-icu (v1.4.0): Downloading (100%)
  - Installing symfony/polyfill-apcu (v1.4.0): Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)
  - Installing doctrine/inflector (v1.1.0): Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (100%)
  - Installing doctrine/cache (v1.6.1): Downloading (100%)
  - Installing doctrine/annotations (v1.4.0): Downloading (100%)
  - Installing doctrine/common (v2.5.3): Downloading (100%)
  - Installing react/promise (v2.5.1): Downloading (100%)
  - Installing guzzlehttp/streams (3.0.0): Downloading (100%)
  - Installing guzzlehttp/ringphp (1.1.0): Downloading (100%)
  - Installing guzzlehttp/guzzle (5.3.1): Downloading (100%)
  - Installing guzzlehttp/log-subscriber (1.0.1): Downloading (100%)
  - Installing csa/guzzle-bundle (v1.3.11): Downloading (100%)
  - Installing phpoffice/phpexcel (1.8.0): Downloading (100%)
  - Installing shudrum/array-finder (v1.1.0): Downloading (100%)
  - Installing ircmaxell/security-lib (v1.1.0): Downloading (100%)
  - Installing ircmaxell/random-lib (v1.2.0): Downloading (100%)
  - Installing curl/curl (1.2.1): Downloading (100%)
  - Installing incenteev/composer-parameter-handler (v2.1.2): Downloading (100%)  - Installing icanboogie/datetime (v1.1.1): Downloading (100%)
  - Installing icanboogie/common (v1.2.2.1): Downloading (100%)
  - Installing icanboogie/cldr (v1.3.9): Downloading (100%)
  - Installing tecnickcom/tcpdf (6.2.12): Downloading (100%)
  - Installing prestashop/translationtools-bundle (dev-master d197eba): Downloading (100%)
  - Installing sensio/framework-extra-bundle (v3.0.10): Downloading (100%)        - Installing sensiolabs/security-checker (v3.0.7):Downloading (100%)         )
  - Installing sensio/distribution-bundle (v4.0.38):Downloading (100%)         )
  - Installing monolog/monolog (1.22.1): Downloading (100%)
  - Installing symfony/monolog-bundle (v2.8.2): Downloading (100%)
  - Installing swiftmailer/swiftmailer (v5.4.8): Downloading (100%)
  - Installing pear/pear_exception (v1.0.0): Downloading (100%)
  - Installing pear/console_getopt (v1.4.1): Downloading (100%)
  - Installing pear/pear-core-minimal (v1.10.3): Downloading (100%)
  - Installing pear/archive_tar (1.4.2): Downloading (100%)
  - Installing symfony/swiftmailer-bundle (v2.3.11):Downloading (100%)         )
  - Installing mobiledetect/mobiledetectlib (2.8.25): Downloading (100%)          - Installing jakeasmith/http_build_url (1.0.1): Downloading (100%)
  - Installing matthiasmullie/path-converter (1.1.0): Downloading (100%)          - Installing matthiasmullie/minify (1.3.44): Downloading (100%)
  - Installing mrclay/minify (2.3.2): Downloading (100%)
  - Installing doctrine/doctrine-cache-bundle (1.3.0): Downloading (100%)         - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)
  - Installing doctrine/dbal (v2.5.12): Downloading (100%)
  - Installing doctrine/doctrine-bundle (v1.5.2): Downloading (100%)
  - Installing maxmind/web-service-common (v0.3.1): Downloading (100%)
  - Installing maxmind-db/reader (v1.1.3): Downloading (100%)
  - Installing geoip2/geoip2 (v2.4.5): Downloading (100%)
  - Installing doctrine/instantiator (1.0.5): Downloading (100%)
  - Installing doctrine/orm (v2.5.6): Downloading (100%)
  - Installing defuse/php-encryption (2.0.3): Downloading (100%)
  - Installing prestashop/prestashop (1.7.1.2): Downloading (100%)
beberlei/DoctrineExtensions suggests installing nesbot/carbon (Alternative to DateTime)
beberlei/DoctrineExtensions suggests installing zf1/zend-date (Alternative to DateTime)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
csa/guzzle-bundle suggests installing guzzlehttp/guzzle-services (Allow web service description)
sensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
pear/archive_tar suggests installing ext-bz2 (bz2 compression support.)
pear/archive_tar suggests installing ext-xz (lzma2 compression support.)
mrclay/minify suggests installing tubalmartin/cssmin (Support minify with CSSMin (YUI PHP port))
maxmind-db/reader suggests installing ext-gmp (bcmath or gmp is requred for decoding larger integers with the pure PHP decoder)
maxmind-db/reader suggests installing ext-maxminddb (A C-based database decoder that provides significantly faster lookups)
Writing lock file
Generating autoload files
soullivaneuh commented 7 years ago

@bd808 Indeed, it seems to work as a VCS.

But I don't understand why a package repository might produce this issue. Could you please elaborate?

Thanks.

bd808 commented 7 years ago

But I don't understand why a package repository might produce this issue. Could you please elaborate?

The package repository type is primarily for installing unpublished, stand-alone packages by unpacking a zip archive. If you want Composer to do more than that you have to actually inline the composer.json that would be published with Packagist in your repository declaration.

soullivaneuh commented 7 years ago

@bd808 I know that, but why this is producing the issue I described?

bd808 commented 7 years ago

You said it in the initial bug report: "Because the composer.json does not exist at the first time." and I acknowledged it in my initial response "Recursively processing files installed via Composer is not a use-case that composer-merge-plugin is intended to solve."