2

Can I gitignore it in a composer based installation?

I tried deleting vendor/ and composer install, but the setup folder was not newly created.

EDIT

It is not happening on each composer install - at least not on every run.

In a fresh project I deleted setup & vendor and called composer install -> setup is created. But in another project it's not.

2
  • Alex, setup folder coming when composer install run .it is come from repo.magento. In my idea you can add setup to gitignore folder
    – Amit Bera
    Commented Aug 8, 2018 at 15:50
  • 1
    The question is why this is not in the standard .gitignore of magento
    – Alex
    Commented Aug 10, 2018 at 11:20

1 Answer 1

3

This should be as part of the composer install, from the magento/magento2-base package. If you check inside {Magento_Root}/vendor/magento/magento2-base you'll see a rather familiar file structure. This is then just mapped from the composer.json file to the root directory upon install.

5
  • Is there php code which copies those files or does composer do it?
    – Alex
    Commented Aug 10, 2018 at 12:40
  • 1
    You are right .. but it seems to need the option "magento-force": "override" to work properly
    – Alex
    Commented Aug 10, 2018 at 12:44
  • Ya, right it mapped from this package
    – Amit Bera
    Commented Aug 10, 2018 at 15:38
  • True the map is in vendor/magento/magento2-base/composer.json what I wonder is where the associated script is defined because it is not in this composer.json
    – Daniel
    Commented Aug 6, 2019 at 7:06
  • might be the magento-composer-installer ?
    – Alex
    Commented Aug 6, 2019 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.