-
Notifications
You must be signed in to change notification settings - Fork 23
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
Merge plugin manifest automatically when building individual plugins with the builder
plugin
#454
Merge plugin manifest automatically when building individual plugins with the builder
plugin
#454
Conversation
Thanks for doing this. The flow you are trying to address I assume is:
But what if the flow is:
If this is a valid case but less troublesome, we can address it with documentation and/or a printout. Another question, but not for this PR, should the |
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.
LGTM
Only nits about comments.
569df49
to
af1fa21
Compare
Good point. I agree that it does not make much sense to bundle plugin binaries that are not mentioned under |
af1fa21
to
0fb40a2
Compare
Thanks for the detailed example. Yes, I feel this scenario is more of a corner case as this should not be an issue for CI systems which are used mostly for publishing plugins. But as you mentioned I also feel that adding documentation clearly explaining this is important. So, I have updated |
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.
Nice doc! Thanks
LGTM
0fb40a2
to
91d25be
Compare
93f362d
to
754ebcd
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.
Nice improvement with PLUGIN_BUNDLE_OVERWRITE
LGTM
754ebcd
to
80bbad3
Compare
…ifest in PluginBundle
80bbad3
to
d425828
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.
LGTM!
return mergedManifest | ||
} | ||
|
||
// findpluginInManifest checks if the plugin already specified in the manifest or not |
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.
nit: findPluginInManifest
plugin already -> "plugin is already"
maybe just take a note to update in the followup.
What this PR does / why we need it
Merge
plugin_manifest.yaml
automatically when building individual plugins with thebuilder
pluginThe
builder
plugin v1.0.0 or greater, supports generating the correctplugin_manifest.yaml
andplugin_bundle.tar.gz
when the user runsmake plugin-build PLUGIN_NAME="<plugin-name>"
individuallymultiple times to build different plugins possibly with different plugin versions. For example:
Note: Because the builder plugin will automatically create merged plugin bundle if the
plugin_manifest.yaml
already exists,To remove all the already built plugins and start from fresh, please configure environment variable
PLUGIN_BUNDLE_OVERWRITE=true
.Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
builder
plugin and notice the plugin manifest file contains only thebuilder
plugin with the correct versiontest
plugin and notice thattest
plugin gets added to the plugin_manifest file along withbuilder
v2.0.0
and build onlybuilder
plugin and notice thatbuilder
plugin version in plugin_manifest gets updatedPLUGIN_BUILD_VERSION=v2.0.0
run make a target to build all plugins and notice both the plugin entry is updated in plugin_manifest with version v2.0.0make plugin-build
again after upsetting thePLUGIN_BUILD_VERSION
and verify plugin_manifest gets updated again with the right plugin versions.PLUGIN_BUNDLE_OVERWRITE
to overwrite the plugin bundle and manifest file.Release note
Additional information
Special notes for your reviewer