very_good_cli icon indicating copy to clipboard operation
very_good_cli copied to clipboard

feat: very_good packages get -r stops on first failure

Open eseidel opened this issue 2 years ago • 2 comments

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

eseidel avatar May 15 '23 20:05 eseidel

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

renancaraujo avatar May 19 '23 13:05 renancaraujo

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.

eseidel avatar May 19 '23 13:05 eseidel