Skip to content

dart run remote with empty version string fails #62122

@sigurdm

Description

@sigurdm
> dart run https://pub.dev/pana@
Resolving dependencies in `/tmp/HUIMZR/helperPackage/`... 
Error on line 5, column 18 of /tmp/HUIMZR/helperPackage/pubspec.yaml: Invalid version constraint: Cannot parse an empty string.

5 │       "version": ""
  │                  ^^

Perhaps we could special case the empty version constraint to be the null constraint (instead of the empty string)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions