I originally posted this in <#CJ909TL6P|> but this...
# general
g
I originally posted this in #CJ909TL6P but this might be the more appropriate channel for it: I've just tried updating
@pulumi/docker-build
from 0.0.12 to 0.0.15. I use the Github Actions cache for deployments from Github Actions and have it disabled for local deployments. I removed the
token
input but I am now getting this error when trying to deploy:
Copy code
docker-build:index:Image (api-image):
    error: 2 failures decoding:
        cacheFrom[0]: An error occurred decoding 'ImageState.cacheFrom[0]': 1 failures decoding:
        gha: An error occurred decoding 'CacheFrom.gha': 2 failures decoding:
        token: Unrecognized field 'token' on 'internal.CacheFromGitHubActions'
        url: Unrecognized field 'url' on 'internal.CacheFromGitHubActions'
        cacheTo[0]: An error occurred decoding 'ImageState.cacheTo[0]': 1 failures decoding:
        gha: An error occurred decoding 'CacheTo.gha': 2 failures decoding:
        token: Unrecognized field 'token' on 'internal.CacheToGitHubActions'
        url: Unrecognized field 'url' on 'internal.CacheToGitHubActions'
I exported the stack and removed the
token
and
url
fields and imported it again but this had no effect.
m
Adding my answer from there: Could you try upgrading one version at a time (0.0.12 → 0.0.13 → 0.0.14 → 0.0.15). And run an up each time, so the provider rewrites the state? But another idea, you could
pulumi state delete
the image and then run up, and it should recreate it.
g
Downgrading, removing the cache definition temporarily (since I'm deploying from my local system and can't use the GHA cache), then upgrading again has resolved it, thanks!
🙌 1