-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Analyzer should interpret a missing sdk lower constraint as 2.7 #44159
Comments
We offer lints based on the pubspec file, but I believe that we take the .dart_tool/package_config.json info as the system-of-record wrt package language versioning. I suspect there's no work to do here for the analyzer, but @scheglov can confirm. @pq - do we lint if there's no lower bound constraint (i.e., a constraint of just |
My understanding is that in the past, when there is no the lower bound constraint for SDK, So, if now we decide that in the absence of the lower bound constraint for SDK |
Do we need to change the default in cases where there is no |
I don't think so.
No. Files that are not part of a package continue to be opted in by default. @jakemac53 Do we know of any other ways the analyzer is affected? If not, we can close this out. |
Nothing I am aware of, |
Closing as I don't believe there's anything for the analyzer to do here. |
Per language team discussion (summarized briefly here we are changing the interpretation of a pubspec sdk constraint with a missing lower bound (or in general no sdk constraint at all, though that will become a pub error) to imply a language version of 2.7. I believe that the analyzer is one of the few tools that reads pubspec.yaml directly, and hence this will need to be changed there.
This is blocker for beta, and will need to be cherry picked if it doesn't make the beta branch cut.
cc @scheglov @devoncarew
cc @pcsosinski @mit-mit @franklinyow
The text was updated successfully, but these errors were encountered: