Skip to content

flutter_tool gets stuck silently if git asks for passphrase #184309

Open

Description

@knopp

For example a situation when ssh-agent was not running properly, which will cause git to ask for passphrase for id_rsa.

When building flutter_tool snapshot, the flutter_tool is ran during snapshot generation. This calls

git fetch --tags

When ssh agent is not running, the git fetch --tags never completes because it is asking for passphrase, which means that flutter_tool also never completes and the snapshot is never generated. The flutter_tool appears stuck without any error message.

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Mar 29, 2026
  2. changed the title [-]flutter_tool gets stuck if git asks for password[/-] [+]flutter_tool gets stuck without any error message if git asks for password[/+] on Mar 29, 2026
  3. changed the title [-]flutter_tool gets stuck without any error message if git asks for password[/-] [+]flutter_tool gets stuck without any error message if git asks for passphrase[/+] on Mar 29, 2026
  4. changed the title [-]flutter_tool gets stuck without any error message if git asks for passphrase[/-] [+]flutter_tool gets stuck silently if git asks for passphrase[/+] on Mar 29, 2026
  5. knopp commented on Mar 29, 2026

    @knopp
    MemberAuthor

    There should probably be a command line argument passed when generating snapshot that would make to tool to exit early.

  6. bkonyi commented on Apr 1, 2026

    @bkonyi
    Contributor

    Thanks for the report @knopp. Do you have any logs or pointers to the exact invocation of git fetch --tags within the tool?

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    P3Issues that are less important to the Flutter project
    triaged-toolTriaged by Flutter Tool team
    on Apr 1, 2026
  8. knopp commented on Apr 1, 2026

    @knopp
    MemberAuthor

    Apologies, "fetch tags" only happens with --version, during snapshot generation when the tool is ran without arguments and there is no cached version info (cache/flutter.version.json), there are other git invocations:

    static GitTagVersion determine(

    During initial snapshot generation when there is no precached verison information this function runs some git invocation, which may silently hang.

  9. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 1, 2026
  10. added 2 commits that reference this issue on Apr 17, 2026
    3d29c85
    20e898e
  11. knopp commented on Apr 28, 2026

    @knopp
    MemberAuthor

    @bkonyi, Im wondering if it would be a good idea to have special argument for flutter_tool used during snapshot compilation where it would exit early minimizing chances of hanging.

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

    P3Issues that are less important to the Flutter projectteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions