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.

  • 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 Aug 8 '18 at 15:50
  • 1
    The question is why this is not in the standard .gitignore of magento – Alex Aug 10 '18 at 11:20
2

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.

|improve this answer|||||
  • Is there php code which copies those files or does composer do it? – Alex Aug 10 '18 at 12:40
  • You are right .. but it seems to need the option "magento-force": "override" to work properly – Alex Aug 10 '18 at 12:44
  • Ya, right it mapped from this package – Amit Bera Aug 10 '18 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 Aug 6 '19 at 7:06
  • might be the magento-composer-installer ? – Alex Aug 6 '19 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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