quaint-spring-93350
09/13/2023, 1:01 PMplugin.json
file per each provider package and puts it into the jar (onto the classpath). These files are then searched for using classpath search using an auxiliary jar (similar to what pulumi-java does) with that functionality to expose all the packages that user has in his program. We currently generate a json of this shape:
{
"resource": true,
"name": "<PLUGIN_NAME>",
"version": "<PLUGIN_VERSION>"
}
Should we pass information about pluginDownloadURL
here also?echoing-dinner-19531
09/13/2023, 2:23 PMquaint-spring-93350
09/14/2023, 7:36 AMpluginDownloadURL
(and they also have the capability to get installed without providing --server
hence the hunch official packages get magical treatment in CLI). so the general rule would be - if schema does contain pluginDownloadURL
codegen should publish that information in plugin.json
for GetRequiredPlugins
echoing-dinner-19531
09/14/2023, 7:38 AMquaint-spring-93350
09/14/2023, 7:47 AMcurl -s <https://api.github.com/repos/pulumi/registry/contents/themes/default/data/registry/packages> | jq '.[].name'
and so we pull each yaml file and process it to obtain latest version, then install the plugin in that version, pull the schema using pulumi package get-schema x
and use that schema to codegen the package. This has led us to the --server
problem and @limited-rainbow-51650 explained to me yesterday that for community packages we should check schema itself (probably by fetching it from schema url available in yaml file?) to see pulumiDownloadURL
field. Is there anything that is out of order in this algorithm? I guess there's probably a lot given the heuristics we do to try and guess how things work on your side.echoing-dinner-19531
09/14/2023, 8:47 AMenough-garden-22763
09/15/2023, 1:51 PMquaint-spring-93350
09/15/2023, 3:51 PMenough-garden-22763
09/15/2023, 3:55 PMquaint-spring-93350
09/15/2023, 4:39 PMlimited-rainbow-51650
09/15/2023, 4:46 PMquaint-spring-93350
09/15/2023, 7:15 PMenough-garden-22763
09/15/2023, 7:19 PMquaint-spring-93350
09/15/2023, 7:20 PM