[CP] Pub: Validate lockfile before recompiling global executable #56930
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Commit(s) to merge
https://dart-review.googlesource.com/c/sdk/+/389720
Target
beta
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/391120
Issue Description
When running a
dart pub global run
of a packagedart pub global activate
d with an earlier sdkPub would not pick up that the package:_macros package has changed and
What is the fix
Validate the lockfile before recompiling the global executable
Why cherry-pick
This will avoid weird compilation errors about missing api when running globally activated packages like intl_utils.
Risk
Medium-low
Issue link(s)
dart-lang/pub#4406
Extra Info
No response
The text was updated successfully, but these errors were encountered: