dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.05k stars 230 forks source link

dart pub global activate --git-path flag does not work in Dart 2.17 #3449

Closed mnordine closed 2 years ago

mnordine commented 2 years ago
$ dart pub global activate -sgit https://github.com/dart-lang/webdev.git --git-path webdev
Could not find a file named "pubspec.yaml" in "/private/var/folders/rp/vr470v996xqfc8wr6qlgcz_00000gn/T/pub_PyEsOB".

The pubspec.yaml file is in the webdev directory, but it doesn't work.

mnordine commented 2 years ago

There is also no documentation on the option, nor an example, on https://dart.dev/tools/pub/cmd/pub-global

sigurdm commented 2 years ago

This is duplicate of https://github.com/dart-lang/pub/issues/3403

(this has been fixed)