melos icon indicating copy to clipboard operation
melos copied to clipboard

fix: Print Resolving dependencies... on begining command melos.

Open patou opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Version

5.1.0

Description

When the melos command is running first time (as in a CI), the melos command can put Resolving dependencies... text.

$ melos --version
Resolving dependencies...
Got dependencies!
5.1.0

It's problematic if I use the melos command with script like get the current version :

melos_version=`melos --version`
echo $melos_version

Or with the command melos list --json

Steps to reproduce

Use a differente melos global version than the local version in the current pubspec.yml

Expected behavior

Add an option to not check dependency and not print this text.

Screenshots

No response

Additional context and comments

No response

patou avatar Mar 14 '24 15:03 patou

This is actually a flutter pub get issue and not a Melos one, there is an issue open for it here: https://github.com/dart-lang/pub/issues/3998

spydon avatar Mar 14 '24 15:03 spydon

I guess we could proxy it and pipe all non-error output to /dev/null though...

spydon avatar Mar 14 '24 15:03 spydon