important-sugar-9877
06/02/2023, 7:58 AMwarning: Found legacy stack files in state store:
- dev
Please run 'pulumi state upgrade' to migrate them to the new format.
Set PULUMI_SELF_MANAGED_STATE_NO_LEGACY_WARNING=1 to disable this warning.
if both users working on a repo containing the .pulumi folder use the same version of pulumi (3.63.0).
user A created and pushed to the repo and can deploy and view resources just fine.
user B cloned the repo and gets the above error whenever trying to interact with any stack.
i have no idea where a legacy stack file could could be coming from.echoing-dinner-19531
06/02/2023, 8:26 AMimportant-sugar-9877
06/02/2023, 8:29 AMechoing-dinner-19531
06/05/2023, 10:06 AMpulumi upgrade
You can turn off that default upgrade with PULUMI_SELF_MANAGED_STATE_LEGACY_LAYOUT=true
but any existing backend already in project mode will stay in project mode.
Old versions of pulumi won't understand project mode, some more recent ones understand it well enough to error that it's unrecognized but very old versions will just write old style non-project scoped files to the backend.important-sugar-9877
06/05/2023, 10:10 AMechoing-dinner-19531
06/05/2023, 10:11 AMimportant-sugar-9877
06/05/2023, 10:11 AM