Skip to content

Set analyzer constraints more conservatively. #61856

@srawlins

Description

@srawlins

Right now we ship the analyzer package with caret constraints on the Dart SDK, e.g. ^3.9.0. One might interpret this to mean, "I will work with the Dart SDK 3.9.0, and 3.10.0, and 3.11.0, etc." That's normally a fair assumption, with semantic versioning.

But we don't really use semantic versioning in the Dart SDK. 3.10.0 might introduce a new syntax, like dot-shorthands. And code in the Dart SDK 3.10.0 might use that new syntax. For example, this CL. Now the analyzer package which has SDK constraint ^3.9.0 is expected to parse that new syntax (or... kernel or analyzer summary format for that syntax?).

Should we set analyzer constraints on the SDK more conservatively, like >=3.9.0 <3.10.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions