Skip to content

Master merge in #1731

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

Merged
merged 11 commits into from
Aug 8, 2018
Merged

Master merge in #1731

merged 11 commits into from
Aug 8, 2018

Conversation

samogot
Copy link
Contributor

@samogot samogot commented Aug 7, 2018

No description provided.

jakemac53 and others added 10 commits August 6, 2018 10:51
This comes up repeatedly that Builder authors are confused when they add
print calls and can't see the messages because info lines get
overwritten without `--verbose`, and `--verbose` adds a bunch of extra
noise that drowns out the wanted messages.

Since we expect Builder authors to rely on `log.info` for long term
logging they want to keep at info and `print` to be used only for short
term stuff it should be safe to up the level to warning.
Fixes #1702

- Adds a new node type `GlobAssetNode`, and a new interface (`NodeWithInputs`) for nodes that have some inputs and an invalidation state.
- Results of the glob are cached on the node, and re-used across the same phase.
- When using `findAssets`, the glob node gets as inputs all the available nodes, and is invalidated just like any other generated node when those inputs are invalidated.
- On new/deleted sources we still need extra logic, but now it only iterates the glob nodes to check for globs which is more efficient than before in the case that a lot of nodes in the same phase performed the same globs.
Add the `unnecessary_new` lint to prevent new instances from showing up.
# Conflicts:
#	build_runner/lib/src/server/server.dart
@samogot samogot requested a review from natebosch August 7, 2018 23:41
@googlebot googlebot added the cla: yes Google is happy with the PR contributors label Aug 7, 2018
@samogot samogot requested a review from jakemac53 August 7, 2018 23:42
Copy link
Member

@natebosch natebosch left a comment

Choose a reason for hiding this comment

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

LGTM assuming Travis passes

@samogot samogot merged commit e06dac3 into hot-reload Aug 8, 2018
@samogot samogot deleted the master-merge-in branch August 8, 2018 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google is happy with the PR contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants