Skip to content

Conversation

@LukasMirbt
Copy link
Contributor

@LukasMirbt LukasMirbt commented Aug 24, 2025

As can be seen in the go_router_builder relative route example, there is unnecessary whitespace in the generated output of RelativeGoRouteData.

This PR fixes the whitespace issue and adjusts run_tests.dart to catch similar issues/regressions in the future.

Closes flutter/flutter#174339.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@LukasMirbt LukasMirbt force-pushed the go-router-builder/relative-route-generation-newlines branch from 9216893 to 5609fec Compare August 24, 2025 10:42
@LukasMirbt LukasMirbt changed the title [go_router_builder] Fix unnecessary generated whitespace in RelativeGoRouteData [go_router_builder] Fix unnecessary whitespace in generated RelativeGoRouteData Aug 24, 2025
@LukasMirbt LukasMirbt marked this pull request as ready for review August 24, 2025 10:54
@LukasMirbt LukasMirbt requested a review from chunhtai as a code owner August 24, 2025 10:54
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chunhtai chunhtai requested a review from hannah-hyj August 25, 2025 16:41
@LukasMirbt LukasMirbt force-pushed the go-router-builder/relative-route-generation-newlines branch 5 times, most recently from c28d77e to dc25089 Compare August 29, 2025 20:18
@LukasMirbt LukasMirbt force-pushed the go-router-builder/relative-route-generation-newlines branch from 9fea188 to 82edbad Compare August 29, 2025 20:19
Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LukasMirbt
Copy link
Contributor Author

@chunhtai Ready to autosubmit?

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 3, 2025
@auto-submit auto-submit bot merged commit ed67a29 into flutter:main Sep 3, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 4, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Sep 4, 2025
flutter/packages@42bb347...98580c6

2025-09-04 [email protected] [mustache_template] Initial import
(flutter/packages#9944)
2025-09-04 [email protected]
[google_maps_flutter_web] Omit styles when cloudMapId is set
(flutter/packages#9869)
2025-09-03 [email protected] [go_router_builder] Fix unnecessary
whitespace in generated `RelativeGoRouteData` (flutter/packages#9875)
2025-09-03 [email protected] [google_maps_flutter_web] Stop
listening to map events when disposed (flutter/packages#9250)
2025-09-03 [email protected] [flutter_svg] loader buffer fix
(flutter/packages#9898)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger pushed a commit to mboetger/flutter that referenced this pull request Sep 18, 2025
flutter/packages@42bb347...98580c6

2025-09-04 [email protected] [mustache_template] Initial import
(flutter/packages#9944)
2025-09-04 [email protected]
[google_maps_flutter_web] Omit styles when cloudMapId is set
(flutter/packages#9869)
2025-09-03 [email protected] [go_router_builder] Fix unnecessary
whitespace in generated `RelativeGoRouteData` (flutter/packages#9875)
2025-09-03 [email protected] [google_maps_flutter_web] Stop
listening to map events when disposed (flutter/packages#9250)
2025-09-03 [email protected] [flutter_svg] loader buffer fix
(flutter/packages#9898)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
flutter/packages@42bb347...98580c6

2025-09-04 [email protected] [mustache_template] Initial import
(flutter/packages#9944)
2025-09-04 [email protected]
[google_maps_flutter_web] Omit styles when cloudMapId is set
(flutter/packages#9869)
2025-09-03 [email protected] [go_router_builder] Fix unnecessary
whitespace in generated `RelativeGoRouteData` (flutter/packages#9875)
2025-09-03 [email protected] [google_maps_flutter_web] Stop
listening to map events when disposed (flutter/packages#9250)
2025-09-03 [email protected] [flutter_svg] loader buffer fix
(flutter/packages#9898)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
lucaantonelli pushed a commit to lucaantonelli/flutter that referenced this pull request Nov 21, 2025
flutter/packages@42bb347...98580c6

2025-09-04 [email protected] [mustache_template] Initial import
(flutter/packages#9944)
2025-09-04 [email protected]
[google_maps_flutter_web] Omit styles when cloudMapId is set
(flutter/packages#9869)
2025-09-03 [email protected] [go_router_builder] Fix unnecessary
whitespace in generated `RelativeGoRouteData` (flutter/packages#9875)
2025-09-03 [email protected] [google_maps_flutter_web] Stop
listening to map events when disposed (flutter/packages#9250)
2025-09-03 [email protected] [flutter_svg] loader buffer fix
(flutter/packages#9898)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: go_router_builder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[go_router_builder] Generated RelativeGoRouteData has unnecessary whitespace

3 participants