Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Add new Dart package dependency on dart-lang/tools#40118

Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom
whesse:add-tools-package
Mar 7, 2023
Merged

Add new Dart package dependency on dart-lang/tools#40118
auto-submit[bot] merged 1 commit intoflutter:mainfrom
whesse:add-tools-package

Conversation

@whesse
Copy link
Contributor

@whesse whesse commented Mar 7, 2023

The new Dart SDK dependency on the dart-lang/tools repo needs to be manually added to engine DEPS.

The new package includes a unified_analytics package used by the analysis server. The builds of Flutter engine with a prebuilt Dart SDK do not require it, but any builds of Flutter engine that build the Dart SDK do need this package.

The package was added to Dart DEPS in
https://dart-review.googlesource.com/c/sdk/+/283921

The package started being used in the SDK build process in commit https://dart-review.googlesource.com/c/sdk/+/286600

The new Dart SDK dependency on the dart-lang/tools repo needs to be manually added to engine DEPS.

The new package includes a unified_analytics package used by the analysis server. The builds of Flutter engine
with a prebuilt Dart SDK do not require it, but any builds of Flutter engine that build the Dart SDK do need this package.

The package was added to Dart DEPS in
https://dart-review.googlesource.com/c/sdk/+/283921

The package started being used in the SDK build process in commit
https://dart-review.googlesource.com/c/sdk/+/286600
Var('dart_git') + '/test_reflective_loader.git@c4c2d5c3f94a96f3fc79e9e28944fba391bc544c',

'src/third_party/dart/third_party/pkg/tools':
Var('dart_git') + '/tools.git@28b7be83589d0d7a6d44cbe6166b6673f08018fb',
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be rolled forward to match the version in the Dart SDK DEPS file when the Dart SDK rolls into the engine?

Copy link
Member

Choose a reason for hiding this comment

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

The https://github.com/flutter/buildroot/blob/master/tools/dart/create_updated_flutter_deps.py script recognizes entries in this format and will copy updates from Dart's DEPS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, adding a new dependency is a one-time operation, after that, it updates when the revision in Dart DEPS changes, just like the other deps.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants