DescriptionPrinting a useful error message if a version field is a num
BUG= https://code.google.com/p/dart/issues/detail?id=21229
Example:
$ cat pubspec.yaml
name: Name
description: A sample command-line application
version: 1.0
$ pub get
Resolving dependencies...
Error on line 3, column 10 of pubspec.yaml: "version" field must have three numeric components: major, minor, and patch. Instead of "1.0", consider "1.0.0".
version: 1.0
^^^
also
$ cat pubspec.yaml
name: Name
description: A sample command-line application
version: 1
$ pub get
Resolving dependencies...
Error on line 3, column 10 of pubspec.yaml: "version" field must have three numeric components: major, minor, and patch. Instead of "1", consider "1.0.0".
version: 1
^
R=rnystrom@google.com
Committed: https://code.google.com/p/dart/source/detail?r=40971
Patch Set 1 #
Total comments: 2
Patch Set 2 : Better bad pub version error message #Patch Set 3 : Adding pubspec bad version tests #
Total comments: 6
Patch Set 4 : Minor comments #Patch Set 5 : Merging master #
Messages
Total messages: 9 (1 generated)
|