Closed
Description
Reproduction steps:
# Extract package:retry version 3.0.1
$ curl -L https://storage.googleapis.com/pub-packages/packages/retry-3.0.1.tar.gz | tar -xz
$ pub get
# Get dartdoc from git
$ mkdir /source/dartdoc
$ git clone https://github.com/dart-lang/dartdoc.git /source/dartdoc
$ cd /source/dartdoc; pub get; cd -;
# Generate docs
$ dart /source/dartdoc/bin/dartdoc.dart
Notice that the pubspec.yaml
for package:retry
has:
environment:
sdk: ">=2.0.0 <3.0.0"
And .dart_tool/package_config.json
specifies language version 2.0 for package:retry
:
{
"configVersion": 2,
"packages": [
/* various other dependencies, mostly test and it's transitive dependencies, omitted here */
{
"name": "retry",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.0" // <-- language version 2.0, hence, no library in package:retry supports null-safety
}
],
"generated": "2020-10-21T10:44:27.912220Z",
"generator": "pub",
"generatorVersion": "2.10.0"
}
Unexpected result:
While it is correct that the retry
function cannot return null
, the package is not migrated to null-safety, so should we really be adding any sort of null-safety tag here?