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

feat(plugins): hook priority system #416

Merged
merged 2 commits into from Mar 8, 2019
Merged

feat(plugins): hook priority system #416

merged 2 commits into from Mar 8, 2019

Conversation

benjie
Copy link
Member

@benjie benjie commented Mar 8, 2019

The diff in this PR is massively misleading. Using ?w=1 may help a little, but I recommend checking it out locally and using:

git diff master -w --word-diff-regex=[^[:space:]]

That'll hide all whitespace differences, not just on a line-by-line basis.

This should not affect the existing hook order; but it does allow plugins to register hooks before other hooks.

@benjie benjie merged commit 95d70ab into master Mar 8, 2019
@benjie benjie deleted the plugin-priorities branch March 8, 2019 15:01
@ab-pm
Copy link
Contributor

ab-pm commented Sep 18, 2019

Oh, this does a topological sort on the registered hook functions, so that the order of plugins is becoming less relevant? Cool!
Please document this on the Build object and Hooks pages.

@benjie
Copy link
Member Author

benjie commented Sep 19, 2019

It's not ready for that yet; it's still experimental.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants