| Index: sdk/lib/_internal/pub_generated/lib/src/pubspec.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart b/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart
|
| index b8b28ed154b137d4d85339a71536410cea382528..5ab37ff54a57b77a933d7e3bc5e69be0e05ed7f2 100644
|
| --- a/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart
|
| +++ b/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart
|
| @@ -37,6 +37,14 @@ class Pubspec {
|
| return _version;
|
| }
|
| var span = fields.nodes['version'].span;
|
| + if (version is num) {
|
| + String fixed = '$version.0';
|
| + if (version is int) {
|
| + fixed = '$fixed.0';
|
| + }
|
| + _error('"version" field must have three numeric components: major, minor, '
|
| + 'and patch. Instead of "$version", consider "$fixed".', span);
|
| + }
|
| if (version is! String) {
|
| _error('"version" field must be a string.', span);
|
| }
|
|
|