invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.08k stars 193 forks source link

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

Open patou opened 4 months ago

patou commented 4 months ago

Is there an existing issue for this?

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

spydon commented 4 months ago

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 commented 4 months ago

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