very_good_cli icon indicating copy to clipboard operation
very_good_cli copied to clipboard

fix: `very_good packages get -r` silently quits if there is no `flutter` executable available

Open incendial opened this issue 2 years ago • 0 comments

Description Hello!

When using very_good packages get -r on CI without Flutter being installed, the command silently quits without installing the dependencies. This behaviour is kinda misleading and a warning of some sort would be great to have.

For example,

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install Beta Dart
        uses: dart-lang/setup-dart@v1
        with:
          sdk: beta

      - name: Install Very Good CLI
        run: |
          dart pub global activate very_good_cli
          dart pub global run very_good_cli:very_good --analytics=false

      - name: Install dependencies
        run: dart pub global run very_good_cli:very_good packages get -r

The output looks like: Screenshot 2023-07-10 at 14 36 48

Steps To Reproduce

  1. Create a github workflow with the steps above
  2. Run it

incendial avatar Jul 10 '23 10:07 incendial