Skip to content

Linux "flutter/generated_plugin_registrant.{h,cc}" are checked into source control, building generates "// clang-format off" #76726

Open

Description

@jmagman

I vaguely remember having a conversation with @stuartmorgan about why this file isn't in the ephemeral directory but I can't recall the details.

Either it should be generated in the ephemeral directory so it's not checked into source control, or if it is supposed to be checked into source control, all the generated_plugin_registrant files checked in the Flutter repo should be updated to have // clang-format off so we don't get a dirty working copy every time we build an example or integration test app.
#76662

diff --git a/dev/integration_tests/flutter_gallery/linux/flutter/generated_plugin_registrant.cc b/dev/integration_tests/flutter_gallery/linux/flutter/generated_plugin_registrant.cc
index 026851fa2f..f6f23bfe97 100644
--- a/dev/integration_tests/flutter_gallery/linux/flutter/generated_plugin_registrant.cc
+++ b/dev/integration_tests/flutter_gallery/linux/flutter/generated_plugin_registrant.cc
@@ -2,6 +2,8 @@
 //  Generated file. Do not edit.
 //
 
+// clang-format off
+
 #include "generated_plugin_registrant.h"
 
 #include <url_launcher_linux/url_launcher_plugin.h>

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-windowsBuilding on or for Windows specifically
    platform-linuxBuilding on or for Linux specifically
    on Feb 24, 2021
  2. jmagman commented on Feb 24, 2021

    @jmagman
    MemberAuthor
  3. stuartmorgan-g commented on Feb 24, 2021

    @stuartmorgan-g
    Contributor

    I vaguely remember having a conversation with @stuartmorgan about why this file isn't in the ephemeral directory but I can't recall the details.

    Luckily it was in a persisted medium :) #71762

    The tl;dr is "because everyone else was doing it"

  4. jmagman commented on Feb 24, 2021

    @jmagman
    MemberAuthor

    Luckily it was in a persisted medium :) #71762

    You're a GitHub search sorcerer.

  5. added
    P2Important issues not at the top of the work list
    on Feb 25, 2021
  6. 12 remaining items

  7. changed the title [-]Desktop generated plugin registrants are checked into source control, building generates "// clang-format off"[/-] [+]Linux "flutter/generated_plugin_registrant.{h,cc}" are checked into source control, building generates "// clang-format off"[/+] on Jun 7, 2024
  8. added
    team-linuxOwned by the Linux platform team
    triaged-linuxTriaged by the Linux platform team
    and removed
    platform-windowsBuilding on or for Windows specifically
    team-toolOwned by Flutter Tool team
    triaged-toolTriaged by Flutter Tool team
    platform-macosBuilding on or for macOS specifically
    on Jun 7, 2024
  9. stuartmorgan-g commented on Jun 7, 2024

    @stuartmorgan-g
    Contributor

    I was going to merge these into one for desktop, but on second thought since the codepaths are all different and we already have a separate one for macOS, I'll file a new one for Windows instead.

  10. added a commit that references this issue on Apr 6, 2025
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

    P2Important issues not at the top of the work lista: desktopRunning on desktopplatform-linuxBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-linuxTriaged by the Linux platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions