-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[M2.1] - No CLI option to exclude patterns on setup:di:compile and other inflexibilities #5676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why are you asking for this - is the primary purpose to improve performance? Or is there another purpose? If performance and we can save significant time by not re-compiling something, shouldn't we just automatically detect and skip if at all possible? Would that work or as mentioned above there's another reason for keeping exclude patterns? I'm tracking improvements in compiler performance internally as (MAGETWO-54054). If exclude patterns then that'd need to be another ticket. Thanks! |
Hi, @choukalos. Not performance, but an edge case. I've created a custom installer, emulating the M1-style upgrade scripts. Those scripts are not in a class (but included), and the compiler breaks. I consider the exclusion pattern CLI option to be quite necessary, not only for my own particular scenario, but because there could be many in my situation who want to be able to exclude certain files, for various reasons. Again, I think it's a little unfair that you hard-code exclusions without giving us a point of extension. |
Hi @adragus-inviqa that's for the update. @piotrekkaminski looks like this one is in your area. |
Thank you for your submission. We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues. Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here). We are closing this GitHub ticket and have moved your request to the new forum. |
On previous versions, we've been told to use
setup:di:compile-multi-tenant
instead ofsetup:di:compile
. K. Now we're told to get back to usingsetup:di:compile
. Ugh, fine.But whilst you were fixing (?)
setup:di:compile
, we've gotten accustomed tosetup:di:compile-multi-tenant
's various and useful CLI options, which - yep -setup:di:compile
does not have. And now thatsetup:di:compile-multi-tenant
is gone, we're left with no.. option:One of the more useful options which is now kaput was
--exclude-pattern
. That allowed us to omit certain files which we didn't want compiled, ofc. But now we're stuck with whatever you thought it was good for your scenarios.Can we get
setup:di:compile
to be as flexible asmulti-tenant
was? If not the same, at least allow us to inject our own exclude patterns.PS: I hope I won't be asked "Can you give me an example of a scenario in which you need to exclude something?". Just trust me on this one, mkay?
The text was updated successfully, but these errors were encountered: