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.
composer install
run .it is come from repo.magento. In my idea you can add setup to gitignore folder