close
Skip to content

[BUG] Cannot use melos to execute fvm command concurrently #296

Description

@lcdsmao

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.
  • Run fvm doctor if possible and add the output to the issue.

Describe the bug

Cannot use melos to execute fvm command concurrently.

To Reproduce
Steps to reproduce the behavior:

  1. Go to terminal, cd to a mono repo with multiple packages (e.g. melos repo)
  2. Run melos exec -- exec fvm flutter
  3. Check output
  4. See error
[app]:
[app]: Could not install 2.0.6
[app]:
[app]: #0      ensureCacheWorkflow (package:fvm/src/workflows/ensure_cache.workflow.dart:61:5)
[app]: <asynchronous suspension>
[app]: #1      FlutterCommand.run (package:fvm/src/commands/flutter_command.dart:30:28)
[app]: <asynchronous suspension>
[app]: #2      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
[app]: <asynchronous suspension>
[app]: #3      FvmCommandRunner.run (package:fvm/src/runner.dart:73:24)
[app]: <asynchronous suspension>
[app]: #4      main (file:///Users/mao/.pub-cache/hosted/pub.dartlang.org/fvm-2.0.4/bin/main.dart:6:8)
[app]: <asynchronous suspension>
[app]:
[app]:

Expected behavior

No error occurs.

Logs
Please provide the verbose logs by running --verbose after the command.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • FVM Version [e.g. 22] 2.0.4
  • If Windows: Which Powershell are you using?

Additional context

I have tried the same command with fvm 2.0.1 and there is no problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions