Plugins are installed automatically correct? I am...
# general
m
Plugins are installed automatically correct? I am somehow running into an issue running in CI (Jenkins) where I get the error
error: could not load plugin for aws provider
when trying to do a
pulumi preview
.
i
Hi! They are, but we just made some changes recently that made our plugin loading behavior a little more strict. Here’s another related issue, is this what you’re seeing? https://github.com/pulumi/pulumi-azure/issues/200
(with aws and not azure)
If you’re blocked by this, you can set the environment variable
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
and you should be able to continue working as before
m
On first glance it definitely seems like the same issue
I will use that, thanks! Is there anything you would like me to grab as far as debug info to help?
i
Yeah, actually - do you mind doing what’s in this comment? https://github.com/pulumi/pulumi-azure/issues/200#issuecomment-471654642
m
Sure thing, want me to post here or in the issue?
i
the issue, if you don’t mind! slack doesn’t do well with big text blobs 😞
m
incoming shortly
i
thanks!
one more thing, what’s the output of
pulumi plugin ls
on your machine?
m
I am finding
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1 pulumi preview
to fail the same way btw.
Locally or in CI?
local:
Copy code
❯ pulumi plugin ls
NAME        KIND      VERSION  SIZE    INSTALLED     LAST USED
aws         resource  0.17.1   156 MB  4 days ago    12 minutes ago
aws         resource  0.17.0   156 MB  4 days ago    12 minutes ago
aws         resource  0.16.10  156 MB  15 hours ago  now
gcp         resource  0.16.9   61 MB   15 hours ago  now
kubernetes  resource  0.21.0   45 MB   4 days ago    now
kubernetes  resource  0.20.4   45 MB   15 hours ago  now
kubernetes  resource  0.18.0   43 MB   15 hours ago  now

TOTAL plugin cache size: 661 MB
i
In whatever environment is failing. Those logs seem to indicate that there aren’t any plugins installed at all
m
Should be able to run that after
yarn
correct?
(and pulumi being installed)
i
yeah, correct
m
This would support that:
Copy code
NAME  KIND  VERSION  SIZE  INSTALLED  LAST USED



TOTAL plugin cache size: 0 B
Installing with
curl -L <https://get.pulumi.com/> | bash -s
i
okay, that’s good info! This is after
yarn install
? Looks like we may have regressed the auto plugin installation that is attached to the NPM package.
m
Yes it is
I don't seem to have any pulumi NPM packages out of date locally
i
does this still reproduce when you run
yarn install
with
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH
set to 1?
(last question, sorry 😆 )
m
let me try
You mean do
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1 yarn install
right?
Add it to that
i
yeah, though even better would be
export PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
as early as you can in your CI shell script
just so we cover all our bases
m
appears to be same result
i
gotcha, thanks! that’s disappointing - I’ll work on this right away
m
Copy code
yarn install v1.13.0

warning package.json: No license field

warning infrastructure: No license field

[1/4] Resolving packages...

[2/4] Fetching packages...

warning Pattern ["@pulumi/kubernetes@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v4/npm-@pulumi-kubernetes-0.21.0-c8695d145a1097a79dbb13f33393a0d169f7e2ef/node_modules/@pulumi/kubernetes" as pattern ["@pulumi/kubernetes@^0.21.0"]. This could result in non-deterministic behavior, skipping.

warning Pattern ["@pulumi/pulumi@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v4/npm-@pulumi-pulumi-0.17.1-a481cff714ca7b577b4ea8d57da0e43d4f464131/node_modules/@pulumi/pulumi" as pattern ["@pulumi/pulumi@^0.17.1","@pulumi/pulumi@^0.17.0","@pulumi/pulumi@^v0.17.0","@pulumi/pulumi@^0.17.1","@pulumi/pulumi@^0.17.1"]. This could result in non-deterministic behavior, skipping.

[3/4] Linking dependencies...

warning " > @typescript-eslint/eslint-plugin@1.4.2" has unmet peer dependency "typescript@*".

warning " > @typescript-eslint/parser@1.4.2" has unmet peer dependency "typescript@*".

warning "@typescript-eslint/eslint-plugin > @typescript-eslint/typescript-estree@1.4.2" has unmet peer dependency "typescript@*".

warning "@typescript-eslint/eslint-plugin > tsutils@3.8.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev".

[4/4] Building fresh packages...

Done in 12.76s.
if helpful
Maybe in mean time I should just add
pulumi plugin install aws
?
i
yes, I believe so:
pulumi plugin install resource aws v0.17.0
m
I actually opted for just
pulumi plugin install
which gave me everything I needed (must check package.json or something?)
i
oh, perfect!
I actually did not know we had that…
😆
m
😄
FYI it appears I still need
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
after installing plugins manually