wikimedia / composer-merge-plugin

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

composer require via packagist works wrong #271

Open abolabo opened 11 months ago

abolabo commented 11 months ago

Hi. Cannot to resolve issue a long time with our composer.json.

When i run composer install inside cloned code directory it builds vendor folder with installed classes from every directory as we expected. all fine. If we try to install via composer require abantecart/ups-php classes from directories does not installed. Can you suggest what is difference of this two installs?

Thank you

abolabo commented 9 months ago

hey, anybody?

evs-xsarus commented 6 months ago

I would create a repository for each subfolder and require those in your main package.

NB I can install a subfolder correctly when putting it as a local_repo:

    "repositories": {
        "abantecart_ups-locator": {
            "type": "path",
            "url": "local_repos/abantecart/ups-locator",
            "options": {
                "symlink": false
            }
        }
    }
    "require": {
        "abantecart/ups-locator": "*@dev"
    },