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
{{ message }}
Repository navigation
Commit 83538fd
Browse filesBrowse the repository at this point in the historyBrowse files
// Even if ignoring version conflicts, it may still be useful to call this
785
785
// method and warn the user about a mismatch between the local and remote
786
786
// Terraform versions.
787
-
severity:=tfdiags.Error
788
-
ifb.ignoreVersionConflict {
789
-
severity=tfdiags.Warning
790
-
}
791
-
suggestion:=" If you're sure you want to upgrade the state, you can force Terraform to continue using the -ignore-remote-version flag. This may result in an unusable workspace."
suggestion:="If you're sure you want to upgrade the state, you can force Terraform to continue using the -ignore-remote-version flag. This may result in an unusable workspace."
42
+
ifignoreVersionConflict {
43
+
suggestion=""
44
+
}
45
+
46
+
description:=fmt.Sprintf(
47
+
"The local Terraform version (%s) does not meet the version requirements for remote workspace %s/%s (%s).\n\n%s",
48
+
tfversion,
49
+
organization,
50
+
workspace.Name,
51
+
workspace.TerraformVersion,
52
+
suggestion,
53
+
)
54
+
description=strings.TrimSpace(description)
55
+
returntfdiags.Sourceless(severity, "Terraform version mismatch", description)
suggestion:="If you're sure you want to upgrade the state, you can force Terraform to continue using the -ignore-remote-version flag. This may result in an unusable workspace."
65
+
ifignoreVersionConflict {
66
+
suggestion=""
67
+
}
68
+
69
+
description:=fmt.Sprintf("The remote workspace specified an invalid Terraform version or version constraint: %s\n\n%s", tfversion, suggestion)
70
+
description=strings.TrimSpace(description)
71
+
returntfdiags.Sourceless(severity, "Terraform version error", description)
0 commit comments