melos icon indicating copy to clipboard operation
melos copied to clipboard

fix: bootstrap fails when version is not specified

Open MohiuddinM opened this issue 4 months ago • 6 comments

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

  1. Add a hosted dependency with no version specified
  2. run: melos bootstrap

Expected behavior

bootstrap should succeed

Screenshots

No response

Additional context and comments

No response

MohiuddinM avatar Oct 16 '24 11:10 MohiuddinM