You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic(fmt.Sprintf(`Unexpected missing provider lock for %s during init -upgrade:
231
+
prior lock: %#v
232
+
new lock: %#v`, pAddr.ForDisplay(), old, new))
233
+
}
234
+
if!new.Version().Same((old.Version())) {
235
+
// The upgrade has impacted the provider
236
+
diags=diags.Append(tfdiags.Sourceless(
237
+
tfdiags.Error,
238
+
"Cannot upgrade the provider used for pluggable state storage during \"terraform init -upgrade\"",
239
+
fmt.Sprintf(`While upgrading providers Terraform attempted to upgrade the %s (%q) provider, which is used by the state_store block in your configuration.
240
+
Please use \"terraform state migrate -upgrade\" to upgrade the state store provider and navigate migrating your state between the two versions. You can then re-attempt \"terraform init -upgrade\" to upgrade the rest of your providers.
241
+
242
+
If you do not intend to upgrade the state store provider, please update your configuration to pin to the current version (%s), and re-run \"terraform init -upgrade\" to upgrade the rest of your providers.
243
+
`,
244
+
pAddr.Type, pAddr.ForDisplay(), old.Version()),
245
+
),
246
+
)
247
+
view.Diagnostics(diags)
248
+
return1
249
+
}
250
+
}
251
+
223
252
// If we outputted information, then we need to output a newline
224
253
// so that our success message is nicely spaced out from prior text.
0 commit comments