Skip to content

Flutter installation using pub global run causes all the subsequent commands fail.  #74917

@cyanglaz

Description

@cyanglaz

Description

This is discovered in the plugin repro: https://cirrus-ci.com/task/6082379875876864 and it is currently blocking the flutter/plugins tree

I have created a reduced test case to reproduce issue locally, which can be found here: https://github.com/cyanglaz/second_process_return_one

This package has a main.dart which executes 2 commands using io.Process.start: flutter --version and ls -l sequentially.

steps to reproduce:

  1. Download the package in above repo, activate the package using pub global activate -s path path_to/second_process_return_one
  2. Make sure to outdate the current flutter installation. One simple way is to switch flutter branch between master and stable.
  3. Execute pub global run second_process_return_one at any directory.
  4. You will see the log:
Downloading Dart SDK from Flutter engine 5d3477eab415fbcc3d58624b07f0a768f8208f98...
Building flutter tool...
Running command: "ls -l"
1
ls -l second time failed

Note

This doesn't fail if ran directly with dart like:
dart path_to/second_process_return_one/lib/main.dart
This seems only happening on MacOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listdependency: dartDart team may need to help uspackageflutter/packages repository. See also p: labels.toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions