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

Only bundle assets and plugins from transitive closure of dependencies #160443

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Dec 17, 2024

Fixes dart-lang/pub#4473
Fixes #79261
Fixes #160142
Fixes #155242

We could have used pub deps to obtain the dependency graph, but given the fact that we already read all the pubspec.yaml files to gather assets, we might as well use those directly, and avoid a process invocation.

Not sure if we should also bundle assets from dev_dependencies - not doing it might be breaking something - it would not be hard to change.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Dec 17, 2024
@bkonyi bkonyi requested review from andrewkolos and bkonyi December 19, 2024 21:28
@sigurdm sigurdm force-pushed the only_bundle_assets_from_dependencies branch from 1024789 to 95ce951 Compare December 20, 2024 09:15
@sigurdm sigurdm changed the title Only bundle assets from transitive closure of dependencies Only bundle assets and plugins from transitive closure of dependencies Dec 20, 2024
@github-actions github-actions bot added the a: desktop Running on desktop label Jan 9, 2025
@sigurdm
Copy link
Contributor Author

sigurdm commented Jan 10, 2025

I think all local tests are passing now. (perhaps we should refactor some tests, so package_config.json doesn't have to be created uniquely for so many tests....)

Not sure what happens in the customer tests, but I think it might be unrelated to this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: desktop Running on desktop tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
1 participant