Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CP] Fix dart run missing fast path when using Flutter #55758

Closed
sigurdm opened this issue May 17, 2024 · 2 comments
Closed

[CP] Fix dart run missing fast path when using Flutter #55758

sigurdm opened this issue May 17, 2024 · 2 comments
Assignees
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. cherry-pick-approved Label for approved cherrypick request cherry-pick-review Issue that need cherry pick triage to approve dart-cli-run Issues related to 'dart run'

Comments

@sigurdm
Copy link
Contributor

sigurdm commented May 17, 2024

Commit(s) to merge

dart-lang/pub@e70850b
Rolled to the sdk in: https://dart-review.googlesource.com/c/sdk/+/367024?tab=checks

Target

stable

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/367060

Issue Description

Without this it is hard/impossible to use build_runner together with localization on flutter.

dart run build_runner build would wrongly think that the current resolution is stale, and redo it. Missing the flutter_gen package that flutter pub get injects to the package config.

This is a regression that was introduced in: dart-lang/pub#4160 rolled to the sdk in 74c94ee

See dart-lang/build#3705

What is the fix

By fixing the fast-path check, we will not replace the package_config if it is up-to-date.

This does not fix the underlying problem that dart run doesn't inject the flutter_gen package when the resolution is stale, but at least makes it possible to run build_runner when localization is enabled.

Why cherry-pick

To fix the regression

Risk

Medium-low

Issue link(s)

See dart-lang/build#3705

Extra Info

No response

@sigurdm sigurdm added the cherry-pick-review Issue that need cherry pick triage to approve label May 17, 2024
@lrhn lrhn added area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-run Issues related to 'dart run' labels May 19, 2024
@itsjustkevin
Copy link
Contributor

@jonasfj @jakemac53 could you take a look at this cherry-pick request?

@jakemac53
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. cherry-pick-approved Label for approved cherrypick request cherry-pick-review Issue that need cherry pick triage to approve dart-cli-run Issues related to 'dart run'
Projects
None yet
Development

No branches or pull requests

7 participants