-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(broccoli): allow rebuild() to return DiffResult #2514
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
Conversation
|
@IgorMinar I've experimented with converting plugins to return DiffResults, but have had (once again) issues with dead symlinks, relating to either MultiCopy or some of the Stew plugins. So it might need some work. The performance for subsequent builds does seem to be very good when the build works correctly though (with just a handful of plugins updated) ~on the order of 25ms per tree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returning a promise for a diffresult should be possible too. no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, and there's code handling that case here --- but it seems weird to have Promise<any> | Promise<DiffResult>, since any is kind of catch-all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about Promise<undefined|DiffResult>?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
I think that addresses each comment |
Plugins may opt to return a DiffResult themselves, and avoid the need to calculate a diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment that this.treeDiffer attempts to reads the diff from the input tree where we stash after the rebuild of that tree is done.
|
otherwise this looks good |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Plugins may opt to return a DiffResult themselves, and avoid the
need to calculate a diff