best-xylophone-83824
08/06/2019, 6:54 PM2: For previews and updates where we also plan to run user code, we as the language host if it knows of any plugins that may be needed. Only NodeJS >implements this today, and does so by walking all the package.json's and looking for pulumi specific metadata.
For (2), we now support the language host to communicate an optional server.how can I change, if possible, package.json so that
pulumi plugin install
pulls plugins from a custom --server?bitter-oil-46081
08/06/2019, 6:59 PMpulumi plugin install
is run, it will use a custom server for downloading my plugin.
Unfortunately, I don't think there's a way to do that today.
A workaround would be to use the install
section of package.json
to have npm run pulumi plugin install --server ...
when the package itself is installed.package.json
add the following:
pulumi: {
resource: true,
server: "<whatever you want passed to --server>"
}
I believe that should work.best-xylophone-83824
08/06/2019, 7:03 PM--- a/package.json
+++ b/package.json
@@ -7,4 +7,8 @@
"@pulumi/pulumi": "latest",
"@pulumi/gcp": "latest"
+ },
+ "pulumi": {
+ "resource": true,
+ "server": "<https://cachingproxy.mycorp/api.pulumi.com/>"
}
}
run :
[resource plugin gcp-0.18.13] installing
[resource plugin gcp-0.18.13] downloading from
error: [resource plugin gcp-0.18.13] downloading from : Get <https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v0.18.13-linux-amd64.tar.gz>: dial tcp 54.213.182.12:443: connect: connection refused
empty downloading from
suggests that serverURL
is empty at that point 😞bitter-oil-46081
08/06/2019, 9:01 PMbest-xylophone-83824
08/07/2019, 9:31 AMpulumi plugin install resource gcp $ver --server