VeryGoodOpenSource / very_good_cli

A Very Good Command-Line Interface for Dart created by Very Good Ventures 🦄
http://cli.vgv.dev
MIT License
2.19k stars 196 forks source link

feat: very_good packages get -r stops on first failure #737

Open eseidel opened 1 year ago

eseidel commented 1 year ago

Would be nice to have an option to allow very_good to continue after first failure. I love being able to use it to fetch all packages but sometimes there are failures I expect and would like to ignore/continue.

Running inside the Dart SDK: https://github.com/dart-lang/sdk/wiki/Building#source

eseidel@erics-mbp sdk % very_good packages get -r
✓ Running "flutter packages get" in /Users/eseidel/Documents/GitHub/dart-sdk/sdk/pkg/dart2js_tools (0.5s)
✓ Running "flutter packages get" in /Users/eseidel/Documents/GitHub/dart-sdk/sdk/tools/verify_docs (0.5s)
✓ Running "flutter packages get" in /Users/eseidel/Documents/GitHub/dart-sdk/sdk/tools/package_deps (0.5s)
✓ Running "flutter packages get" in /Users/eseidel/Documents/GitHub/dart-sdk/sdk/runtime/observatory_2 (0.4s)
ProcessException: Standard out
Resolving dependencies...
Standard error
The lower bound of "sdk: '>=2.6.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety.

The current Dart SDK (3.0.0) only supports null safety.

For details, see https://dart.dev/null-safety
  Command: flutter packages get
renancaraujo commented 1 year ago

All recursive commands are fail fast by design. For this case we can add an option to turn off fail fast.

eseidel commented 1 year ago

I got around this by just passing an increasing number of --ignore commands. If others don't need this, feel free to just close. Simple is good.