melos
melos copied to clipboard
fix: bootstrap fails when version is not specified
Is there an existing issue for this?
- [X] I have searched the existing issues.
Version
6.2.0
Description
type 'Null' is not a subtype of type 'String'
#0 new ExternalHostedReference.fromJson (package:pubspec/src/dependency.dart:138:37)
#1 new DependencyReference.fromJson (package:pubspec/src/dependency.dart:25:42)
#2 new PubSpec.fromJson.<anonymous closure> (package:pubspec/src/pubspec.dart:107:68)
#3 JsonParser.mapValues.<anonymous closure> (package:pubspec/src/json_utils.dart:113:45)
#4 MapBase.forEach (dart:collection/maps.dart:35:13)
#5 JsonParser.mapValues (package:pubspec/src/json_utils.dart:112:7)
#6 new PubSpec.fromJson (package:pubspec/src/pubspec.dart:107:15)
#7 PubSpec.loadFile (package:pubspec/src/pubspec.dart:128:15)
Steps to reproduce
- Add a hosted dependency with no version specified
- run: melos bootstrap
Expected behavior
bootstrap should succeed
Screenshots
No response
Additional context and comments
No response