Skip to content

Use dart pub instead of dart __deprecated pub#121605

Merged
sigurdm merged 2 commits intoflutter:masterfrom
sigurdm:use_real_pub
Mar 6, 2023
Merged

Use dart pub instead of dart __deprecated pub#121605
sigurdm merged 2 commits intoflutter:masterfrom
sigurdm:use_real_pub

Conversation

@sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Feb 28, 2023

This moves away from the old pub interface.

We are no longer parsing the output of pub, so not relying on the old format.

This takes care to run pub with --no-analytics to preserve behavior.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

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

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 28, 2023
@sigurdm sigurdm marked this pull request as ready for review March 2, 2023 09:21
);
}
return <String>[sdkPath, '__deprecated_pub', ...arguments];
return <String>[sdkPath, '--no-analytics', 'pub', ...arguments];
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't ever want analytics from these invocations? and is __deprecated_pub already not sending analytics?

Copy link
Contributor Author

@sigurdm sigurdm Mar 3, 2023

Choose a reason for hiding this comment

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

I think eventually we do want. But I wanted this PR to have minimal behavioral change. And we will probably have to revisit the analytics soon for the new pipeline anyway.

is __deprecated_pub already not sending analytics?

No - it doesn't. There was at the time questions about what our PDD allowed and not.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

@sigurdm sigurdm merged commit 7a28078 into flutter:master Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Mar 13, 2023
This is no longer used after flutter/flutter#121605

Change-Id: Ifc33004dd3a87612bf7b92a50587d68a37d629d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286927
Commit-Queue: Sigurd Meldgaard <[email protected]>
Reviewed-by: Jonas Jensen <[email protected]>
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants