https://pulumi.com logo
Title
n

narrow-match-14013

03/14/2023, 3:10 PM
and this is what i have installed
% pulumi plugin ls | grep checkmate
checkmate     resource  0.1.5    58 MB   38 minutes ago  35 minutes ago
e

enough-garden-22763

03/14/2023, 3:35 PM
There's a few gotchas with plugin resolution. Is
pulumi-resource-checkmate
in PATH? e.g.
which pulumi-resource-checkmate
- if it is, it will be used instead of the installed one.
n

narrow-match-14013

03/14/2023, 3:35 PM
it isn't
% which pulumi-resource-checkmate
pulumi-resource-checkmate not found
e

enough-garden-22763

03/14/2023, 3:36 PM
The other bit is the SDK. Are you driving it from Node or some other language?
n

narrow-match-14013

03/14/2023, 3:36 PM
node
e

enough-garden-22763

03/14/2023, 3:37 PM
Is the node SDK versioned itself? Pulumi will be trying to ensure that the version of the Node SDK has a matching resource plugin with the same version. Guessing it's versioned 0.1.5?
n

narrow-match-14013

03/14/2023, 3:38 PM
yeah its got version: 0.1.5 in the package.json if thats what you mean
e

enough-garden-22763

03/14/2023, 3:38 PM
Ah yes hm.. so that's why it's looking for 0.1.5, the strange part is why it's finding 0.0.1..
n

narrow-match-14013

03/14/2023, 3:38 PM
so is that the version reported from the plugin itself then?
e

enough-garden-22763

03/14/2023, 3:38 PM
I've checked PF sources just in case there's some debug code injecting 0.0.1 but doesn't seem to be
Yeah
you can run your program with
PULUMI_DEBUG_GRPC=$PWD/log.json pulumi up
and I think one of the calls should show the version it's reporting back
n

narrow-match-14013

03/14/2023, 3:56 PM
{"method":"/pulumirpc.ResourceProvider/GetPluginInfo","request":{},"response":{"version":"0.0.1"},"metadata":{"kind":"resource","mode":"client","name":"checkmate"}}
oh wait i think i found it. it comes from the
ProviderInfo
e

enough-garden-22763

03/14/2023, 4:08 PM
Ah!
Is it something we can fix in pulumi-terraform-bridge repo?
n

narrow-match-14013

03/14/2023, 4:09 PM
no i think i just didn't set it right. will report back after i rebuild haha
e

enough-garden-22763

03/14/2023, 4:09 PM
Perfect!