zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
26 stars 52 forks source link

Validate appFw pluginDefinition schema during `zwe component install/upgrade` #3863

Closed 1000TurquoisePogs closed 3 days ago

1000TurquoisePogs commented 2 weeks ago

The function getPluginDefinition() https://github.com/zowe/zowe-install-packaging/blob/190086323869b1e7d74d4857f4f86d40dccbb582/bin/libs/component.ts#L117 can validate a found plugin against schema.

In zwe component install there is an extract stage https://github.com/zowe/zowe-install-packaging/blob/v2.x/staging/bin/commands/components/install/extract/index.ts which reads an extension manifest.

At that time, if we spot plugins within, we can also call getPluginDefinition() on them, but don't right now.

We should, so that people can get validation of plugins at install time. Currently, this is one at runtime. EVERY run. It is a waste of startup time, and too late for verification.