Skip to content

build: add tooling to avoid jit issues with empty NgModule definitions #13843

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

Merged
merged 1 commit into from
Oct 30, 2018

Conversation

crisbeto
Copy link
Member

* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792.
* Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
@crisbeto crisbeto added pr: merge safe target: patch This PR is targeted for the next patch release labels Oct 27, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 27, 2018
@devversion
Copy link
Member

devversion commented Oct 27, 2018

Didn't we chat about it just being something that should technically work, but we just have no idea how the given team ran into issues with it.

or did @mmalerba already get a response about why this happened?

@crisbeto
Copy link
Member Author

I don't know whether @mmalerba got a response, but I added this tooling since it could spare us another random issue like #13792 in the future, while being fairly low maintenance.

@devversion
Copy link
Member

devversion commented Oct 27, 2018

I see, it just feels a bit odd to enforce something that is technically supported by Angular, but broke for someone potentially doing something unexpected we don't are aware of.

It would be just good to understand when it could break, and report an issue on Angular. I don't feel too strong about it.. the tooling shouldn't hurt either.

Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephperrott josephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 29, 2018
@mmalerba
Copy link
Contributor

I did talk to them, they mentioned that they might have had Ivy enabled at the time, but Misko didn't think it seemed like an Ivy issue. It's also possible it was a change Angular merged but didn't release yet, or maybe the team was just doing something really crazy. Whatever the reason, I don't think it hurts for us to specify the {}

@jelbourn jelbourn merged commit d0f0f0a into angular:master Oct 30, 2018
atscott pushed a commit to atscott/components that referenced this pull request Nov 5, 2018
angular#13843)

* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792.
* Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
jelbourn pushed a commit that referenced this pull request Nov 6, 2018
#13843)

* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like #13792.
* Fixes a similar issue as #13792 in the `LayoutModule` which was caught after the new changes to the rule.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants