I'm getting 'pub' related errors during melos command execution ('pub' command is missing), probably related to the direct usage of pub instead of dart pub or flutter pub. I found this PR (https://github.com/invertase/melos/pull/18/files) which should fix exactly this problem.
Flutter 1.27.0-1.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision 68c96f100e (9 days ago) • 2021-02-08 16:14:15 -0800
Engine • revision b04955656c
Tools • Dart 2.13.0 (build 2.13.0-0.0.dev)
Microsoft Windows [Version 10.0.19041.804]
melos 0.4.5
dart pub and flutter pub are working fine
Steps to reproduce
- Execute any melos command (even the help command works)
- See output (error can be found at the end. Sorry for the German error message. It just says that 'pub' isn't there, which is true, but
dart pub and flutter pub should be used)
D:\Code\Flutter>melos
Your current directory does not appear to be a valid Melos workspace.
You must have one of the following to be a valid Melos workspace:
- a "melos.yaml" file in the root with a "packages" option defined
- a "packages" directory
Der Befehl "pub" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Is there something I'm missing during configuration / setup or is this a bug?
I'm getting 'pub' related errors during melos command execution ('pub' command is missing), probably related to the direct usage of
pubinstead ofdart puborflutter pub. I found this PR (https://github.com/invertase/melos/pull/18/files) which should fix exactly this problem.dart pubandflutter pubare working fineSteps to reproduce
dart pubandflutter pubshould be used)Is there something I'm missing during configuration / setup or is this a bug?