Skip to content

[flutter_tools] flutter run logs a git error to STDERR when app isn't git project #118734

@christopherfujino

Description

@christopherfujino
~/git/tmp/delete_me_flutter$ flutter run -d linux
This application does not support sound null-safety (its language version is 2.11).
To build this application, you must provide the CLI flag --no-sound-null-safety. Dart 3 will only
support sound null safety, see https://dart.dev/null-safety.
~/git/tmp/delete_me_flutter$ flutter run -d linux --no-sound-null-safety
Launching lib/main.dart on Linux in debug mode...
fatal: not a git repository (or any of the parent directories): .git
Building Linux application...
Syncing files to device Linux...                                   386ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

Running without sound null safety ⚠️
Dart 3 will only support sound null safety, see https://dart.dev/null-safety

An Observatory debugger and profiler on Linux is available at:
http://127.0.0.1:36037/7-kXLgw0gtY=/
The Flutter DevTools debugger and profiler on Linux is available at:
http://127.0.0.1:9100?uri=http://127.0.0.1:36037/7-kXLgw0gtY=/

Here is the relevant snippet of the verbose logs:

[   +7 ms] Building Linux application...
[   +3 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/fujino/git/tmp/delete_me_flutter/linux
[  +53 ms] -- Configuring done
[        ] -- Generating done
[  +68 ms] -- Build files have been written to: /home/fujino/git/tmp/delete_me_flutter/build/linux/x64/debug
[   +5 ms] executing: ninja -C build/linux/x64/debug install
[  +32 ms] fatal: not a git repository (or any of the parent directories): .git
[   +1 ms] ninja: Entering directory `build/linux/x64/debug'

It seems like ninja -C build/linux/x64/debug install is triggering the git call?

This is a counter app from templates, and grepping my project directory, I see no references to git other than a CMAKE log which has the same error as above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: annoyanceRepeatedly frustrating issues with non-experimental functionalityteam-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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy