-
-
Notifications
You must be signed in to change notification settings - Fork 96
Load plugin schemas after built-in schemas #1608
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
This change allows for plugins to override bundled schemas as part of their installation. The plugin schemas reside in `<datadir>/vast/plugin/<plugin>/schema`, while the builtin schemas reside in `<datadir>/vast/schema`. The load order guarantees that plugins are able to reliably override the schemas bundled with VAST.
b800f00
to
570a449
Compare
The "bare mode" (`vast.disable-default-config-dirs`) must also disable the developer-oriented plugin autoloading feature, otherwise the integration tests load plugins they're not supposed to load.
570a449
to
19be2da
Compare
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.
Code looks good apart from some minor comments.
I didn't personally test this, but I trust you already did while working on the matcher.
#if !VAST_ENABLE_RELOCATABLE_INSTALLATIONS | ||
result.insert(VAST_SCHEMADIR); | ||
insert_dirs_for_datadir(VAST_DATADIR); | ||
#endif |
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.
Not the scope of this PR, but shouldn't the loop below be in an #else
block?
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.
That'd break integration tests from within the build directory.
📔 Description
This change allows for plugins to override bundled schemas as part of their installation. The plugin schemas reside in
<datadir>/vast/plugin/<plugin>/schema
, while the builtin schemas reside in<datadir>/vast/schema
. The load order guarantees that plugins are able to reliably override the schemas bundled with VAST.📝 Checklist
🎯 Review Instructions
Commit-by-commit.