jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
590 stars 171 forks source link

get_cli cannot be installed in flutter 3.2 #184

Closed arjundevlucid closed 2 years ago

arjundevlucid commented 2 years ago

image

eunryong-hwang commented 2 years ago

Same issue. But I run on the flutter 2.10.5 What happened?

feralxan commented 2 years ago

image Same here

Flutter 3.0.2

eunryong-hwang commented 2 years ago

just find the version_update.dart file in your path below is my pub-cache path. vim .pub-cache/hosted/pub.dartlang.org/get_cli-1.7.1/lib/functions/version/version_update.dart and add null check then the problem will be fixed.

before

final v1 = Version.parse(versionInPubDev);

after

final v1 = Version.parse(versionInPubDev!);

But I still can't understand what there happened.

arjundevlucid commented 2 years ago

use this

dart pub global activate --source git https://github.com/Shreemanarjun/get_cli

mdccxv commented 2 years ago

The core problem is in version dependency, it made a breaking change in one of their latest patch version 2.0.1

mdccxv commented 2 years ago

It should be fixed now. Just make sure your get_cli downloads the 2.0.3 version of version dependency.