Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] fvm flutter run behavior change in 2.x #285

Closed
3 tasks done
ened opened this issue May 4, 2021 · 2 comments
Closed
3 tasks done

[BUG] fvm flutter run behavior change in 2.x #285

ened opened this issue May 4, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ened
Copy link
Contributor

ened commented May 4, 2021

Before creating a bug report please make check the following

  • You have read our FAQ
  • If you have used flutter. Please install correctly, run pub cache repair. Close the terminal and try again.
  • If you are on Windows. Make sure you are running the terminal as administrator or with developer permissions.

Describe the bug

We used to successfully run fvm flutter pub global run melos run test:unit:flutter to run some unit tests via a melos pipeline, however the same invocation now fails with the flutter command not being available anymore. Instead things now fail like this:

fvm: running version "1.22.6"

melos run test:unit:flutter
   └> melos exec -c 5 --fail-fast --dir-exists=test --ignore="*example*" --ignore="*web*" -- \  "mkdir -p test-results && flutter test --machine > test-results/flutter-test.json && exit 0"
       └> RUNNING

$ melos exec
   └> mkdir -p test-results && flutter test --machine > test-results/flutter-test.json && exit 0
       └> RUNNING (in 6 packages)

--------------------------------------------------------------------------------
[connect]: /bin/sh: line 1: flutter: command not found
[mnc_support]: /bin/sh: line 1: flutter: command not found
--------------------------------------------------------------------------------

The relevant bit in melos.yaml is:

  test:unit:flutter: >
    melos exec -c 5 --fail-fast --dir-exists=test --ignore="*example*" --ignore="*web*" -- \
      "mkdir -p test-results && flutter test --machine > test-results/flutter-test.json && exit 0"
  • OS: mac
  • FVM Version 2.0.2
@ened ened added the bug Something isn't working label May 4, 2021
@leoafarias
Copy link
Owner

@ened
Copy link
Contributor Author

ened commented May 4, 2021

@leoafarias you are a superstar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants