https://pulumi.com logo
Title
s

swift-telephone-15894

05/07/2021, 6:10 AM
Hi, I'm running into an issue using the Pulumi Github action and I'm not sure what is going wrong. Could somebody help me make sense of this? 🙏
[resource plugin gcp-5.0.0] installing
  
  Downloading plugin: 0 B / 34.41 MiB    0.00%
  Downloading plugin: 3.51 MiB / 34.41 MiB   10.19% 1s
  Downloading plugin: 10.03 MiB / 34.41 MiB   29.16%
  Downloading plugin: 15.23 MiB / 34.41 MiB   44.25%
  Downloading plugin: 20.62 MiB / 34.41 MiB   59.91%
  Downloading plugin: 25.93 MiB / 34.41 MiB   75.36%
  Downloading plugin: 31.06 MiB / 34.41 MiB   90.26%
  Downloading plugin: 34.41 MiB / 34.41 MiB  100.00% 1s
  
      pulumi:pulumi:Stack replayvalue-dev running 
      pulumi:providers:gcp default_5_2_0  error: no resource plugin 'gcp-v5.2.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource gcp v5.2.0`
      pulumi:pulumi:Stack replayvalue-dev  
      pulumi:providers:gcp default_5_2_0  1 error
   
  Diagnostics:
    pulumi:providers:gcp (default_5_2_0):
      error: no resource plugin 'gcp-v5.2.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource gcp v5.2.0`
This error happens during
Run pulumi/actions@v3
  with:
    command: preview
    stack-name: dev
    work-dir: infra
    comment-on-pr: false
    github-token: ***
    parallel: 2147483647
    target-dependents: false
    refresh: false
    upsert: false
b

broad-dog-22463

05/07/2021, 8:56 AM
Hi @swift-telephone-15894 From what I can tell, you were on pulumi-gcp 5.0.0 and then have upgraded to 5.2.0 as part of a pull-request? Is that correct?
s

swift-telephone-15894

05/07/2021, 9:18 PM
Yeah that's correct
I'm confused as to why it tried to pull the out of date resource plugin.
b

broad-dog-22463

05/07/2021, 9:34 PM
@swift-telephone-15894 so the old version is in your state file - so it’s trying to use that before it upgrades the state AFICR
s

swift-telephone-15894

05/07/2021, 9:35 PM
oh so can I fix this by like running the command locally or something?
to update the state?
I don't have any problems running the pulumi tool locally. Its only when i try to use it in CI
with the github action
@broad-dog-22463 So after running
pulumi up
manually from my local machine it seems that the github action is working again, so I guess the state updated and all is well.
That does beg the question though how are we supposed to update our provider version without breaking CI and the gihutb action?
is that documented somewhere?
b

broad-dog-22463

05/10/2021, 8:36 AM
Hey @swift-telephone-15894 Sorry I was offline yesterday - let me find a definitive answer here and see what we suggest Paul
s

swift-telephone-15894

05/11/2021, 3:14 AM
Great thanks a lot for the help Paul!