-
Notifications
You must be signed in to change notification settings - Fork 170
Report type_literal_in_constant_pattern more often. #4358
Report type_literal_in_constant_pattern more often. #4358
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Is this something we might be able to cherry pick? |
The past experience left me with a feeling that we don't to cherry picks for linter. |
We are able to do cherry picks from the linter, but it requires creating a new linter branch based on the last branch pulled into the SDK, applying the changes on that branch, and then pulling the new branch into the target SDK branch (bypassing the main SDK branch). |
Yep. What Brian said. The most careful way to cherry-pick a linter fix is a bit painful and time-consuming. Alternatively we could pull in more changes and shoulder a bit of risk. If this is high priority, I'm happy to look into it. |
We discussed this in the language team, and we think that it's high value enough to pursue as a cherry pick. We'll let you folks decide if the best approach is a linter roll or just patching this single change in. |
@pq did you have a chance to look into a cherry pick? |
Yeah. I'm working on it. The trick is we'd like to get the change landed into main first so that the cherry-pick isn't out of sync with what's at tip of tree. That roll has been stalled for other reasons (https://dart-review.googlesource.com/c/sdk/+/304360) but we're getting there! |
As requested in dart-lang/sdk#59087