dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.2k stars 1.57k forks source link

pub analyzes package with old incompatible dart version #38716

Closed passsy closed 5 years ago

passsy commented 5 years ago

I'm the author of lint and I get analyze errors when publishing to pub with sdk constraint >=2.5.0 <3.0.0.

Analyze runs with Dart 2.4.0 which is outdated. It would be better when analyzer would run with the latest stable version.

The implication is a big score hit (Health: 0).

I'm required to publish for Dart 2.5+ to ship the latest lint rule additions. Publishing for Dart 2.4 is not possible as it would result in analyze error due to unknown lint rules.

Errors:

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.4.0.

 Because lint requires SDK version >=2.5.0 <3.0.0, version solving failed.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.
Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.
vsmenon commented 5 years ago

@jonasfj - should this be filed on pub?

passsy commented 5 years ago

Fixed in the meantime