Skip to content

'pub' errors during melos commands on Windows #61

Description

@Boehrsi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions