Skip to content

Restructure LoadStrategy to provide build arguments - #2270

Merged
annagrin merged 22 commits into
dart-lang:masterfrom
annagrin:annagrin/read-build-arguments
Nov 1, 2023
Merged

annagrin merged 22 commits into
dart-lang:masterfrom
annagrin:annagrin/read-build-arguments

Conversation

@annagrin

Copy link
Copy Markdown
Contributor

Restructure LoadStrategy to provide build arguments.

This change is the first step needed to support reading the build arguments from build metadata when they are not known before launching dwds (for example, when using blaze or build_web_compilers to build the app).

  • Make load strategy provide the build settings
  • Adjust the tools and the tests to use load strategy as the source of truth for the build settings.

Towards: flutter/devtools#5350
Towards: #1290

@annagrin
annagrin marked this pull request as ready for review October 30, 2023 15:47
@annagrin
annagrin requested a review from elliette October 30, 2023 20:16
Comment thread dwds/lib/src/debugging/location.dart Outdated
Comment thread dwds/lib/src/loaders/strategy.dart Outdated
Comment thread dwds/lib/src/config/tool_configuration.dart

@elliette elliette left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

copybara-service Bot pushed a commit to dart-lang/sdk that referenced this pull request Nov 1, 2023
Pins DWDS to dart-lang/webdev@5ad79c2
which is necessary to unblock Dwds rolls due to this change to the LoadStragegy interface:

dart-lang/webdev#2270, which is a breaking change to google3.

Towards: dart-lang/webdev#2276

Change-Id: I24fe79315b8493103c6b00e96f4fcea1ee011231
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333123
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Anna Gringauze <annagrin@google.com>
@annagrin
annagrin merged commit 7ed5ad7 into dart-lang:master Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants