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

Filter out the builders which "applies_builders" some builder which is "build_to: source" on non root packages #1578

Closed
natebosch opened this issue Jun 16, 2018 · 3 comments
Labels
type-enhancement A request for a change that isn't a bug

Comments

@natebosch
Copy link
Member

natebosch commented Jun 16, 2018

Today we filter out builders that won't work because they want to build to source and auto apply to some package other than the root. Once source_gen adds the combining builder the actual builder doing work would be build_to: cache and so would get needlessly run.

cc @kevmoo - we'll want this before launching the combining builder stuff because it will impact performance.

Blocking dart-lang/source_gen#319

@kevmoo
Copy link
Member

kevmoo commented Jun 16, 2018 via email

@jakemac53
Copy link
Contributor

jakemac53 commented Jun 18, 2018

This could also be resolved by allowing boolean-selector type logic to auto-apply - in this case we would want root_package && dependents. That way it would only apply to the root package, and only if that also had an explicit dependency.

Imo this is a better solution as it more directly describes the intent.

@kevmoo
Copy link
Member

kevmoo commented Jun 18, 2018

@matanlurey matanlurey added the type-enhancement A request for a change that isn't a bug label Jul 6, 2018
natebosch added a commit that referenced this issue Jul 13, 2018
Closes #1578

Previously we filtered out any builders on non-root packages which would
attempt to write to source. Now we also filter out builders which write
to cache but want to apply some builder that would write to source,
under the assumption that if a builder can't be applied it isn't worth
doing the hidden work.

Add a test for the existing filtering, as well as the new filtering.
natebosch added a commit that referenced this issue Jul 16, 2018
Closes #1578

Previously we filtered out any builders on non-root packages which would
attempt to write to source. Now we also filter out builders which write
to cache but want to apply some builder that would write to source,
under the assumption that if a builder can't be applied it isn't worth
doing the hidden work.

Add a test for the existing filtering, as well as the new filtering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants