Skip to content

the channel command prints irrelevant git output #128025

Closed

Description

@mit-mit

When changing channel with flutter channel, the command prints a bunch of scary looking output from git, with a red font that looks "errorish":

Switching to flutter channel 'stable'...
git: From https://github.com/flutter/flutter
git:  + 0df8557c56...350d2c3a6c beta                    -> origin/beta  (forced update)
git:  * [new branch]            b123315                 -> origin/b123315
git:  * [new branch]            dependabot/github_actions/codecov/codecov-action-3.1.4 -> origin/dependabot/github_actions/codecov/codecov-action-3.1.4
git:  * [new branch]            dependabot/github_actions/google/mirror-branch-action-2.0 -> origin/dependabot/github_actions/google/mirror-branch-action-2.0
git:  * [new branch]            fix_devtools_start_paused -> origin/fix_devtools_start_paused
git:    7be6b570a7..c48ceda6b5  flutter-3.10-candidate.1 -> origin/flutter-3.10-candidate.1
git:  * [new branch]            flutter-3.10-candidate.10 -> origin/flutter-3.10-candidate.10
git:  * [new branch]            flutter-3.10-candidate.11 -> origin/flutter-3.10-candidate.11
git:  * [new branch]            flutter-3.10-candidate.12 -> origin/flutter-3.10-candidate.12
git:  * [new branch]            flutter-3.10-candidate.13 -> origin/flutter-3.10-candidate.13
git:  * [new branch]            flutter-3.10-candidate.14 -> origin/flutter-3.10-candidate.14
git:  * [new branch]            flutter-3.10-candidate.15 -> origin/flutter-3.10-candidate.15
git:  * [new branch]            flutter-3.10-candidate.16 -> origin/flutter-3.10-candidate.16
git:  * [new branch]            flutter-3.10-candidate.17 -> origin/flutter-3.10-candidate.17
git:  * [new branch]            flutter-3.10-candidate.18 -> origin/flutter-3.10-candidate.18
git:  * [new branch]            flutter-3.10-candidate.2 -> origin/flutter-3.10-candidate.2
git:  * [new branch]            flutter-3.10-candidate.3 -> origin/flutter-3.10-candidate.3

Isn't this an implementation detail with zero relevance for the developer, and thus something we should hide?

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Jun 1, 2023
  2. huycozy commented on Jun 1, 2023

    @huycozy
    Member

    I also see red font when switching from beta to stable or master to stable for eg:

    Screenshot 2023-06-01 at 19 04 53

    flutter doctor -v (stable and master)
    [✓] Flutter (Channel stable, 3.10.2, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
        • Flutter version 3.10.2 on channel stable at /Users/huynq/Documents/GitHub/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 9cd3d0d9ff (22 hours ago), 2023-05-23 20:57:28 -0700
        • Engine revision 90fa3ae28f
        • Dart version 3.0.2
        • DevTools version 2.23.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-33, build-tools 32.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 14.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 14E222b
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2022.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    
    [✓] VS Code (version 1.78.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.64.0
    
    [✓] Connected device (3 available)
        • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
        • macOS (desktop)  • macos            • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
        • Chrome (web)     • chrome           • web-javascript • Google Chrome 113.0.5672.126
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.11.0-16.0.pre.45, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
        • Flutter version 3.11.0-16.0.pre.45 on channel master at /Users/huynq/Documents/GitHub/flutter_master
        ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 3c61b9d834 (37 minutes ago), 2023-05-31 19:39:15 -0700
        • Engine revision f9bc342c84
        • Dart version 3.1.0 (build 3.1.0-155.0.dev)
        • DevTools version 2.23.1
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-33, build-tools 32.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 14.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 14E222b
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2022.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    
    [✓] VS Code (version 1.78.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.64.0
    
    [✓] Connected device (5 available)
        • RMX2001 (mobile)       • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
        • iPhone (mobile)        • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
        • iPhone 14 Pro (mobile) • 98082851-A0C4-4E39-A310-21C48B10A364     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
        • macOS (desktop)        • macos                                    • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
        • Chrome (web)           • chrome                                   • web-javascript • Google Chrome 113.0.5672.126
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
  3. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: qualityA truly polished experience
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    and removed
    in triagePresently being triaged by the triage team
    on Jun 1, 2023
  4. added
    P2Important issues not at the top of the work list
    on Jun 6, 2023
  5. added
    r: fixedIssue is closed as already fixed in a newer version
    on Jun 14, 2023
  6. github-actions commented on Jun 28, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: qualityA truly polished experiencefound in release: 3.10Found to occur in 3.10found in release: 3.11Found to occur in 3.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versiontoolAffects 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