diff --git a/tfexec/exit_errors.go b/tfexec/exit_errors.go index ebbfc3a9..b2b0ada6 100644 --- a/tfexec/exit_errors.go +++ b/tfexec/exit_errors.go @@ -18,9 +18,10 @@ var ( usageRegexp = regexp.MustCompile(`Too many command line arguments|^Usage: .*Options:.*|Error: Invalid -\d+ option`) - // "Could not load plugin" is present in 0.13 - // "Please run \"terraform init\"" is present in v1.1.0 - noInitErrRegexp = regexp.MustCompile(`Error: Could not satisfy plugin requirements|Error: Could not load plugin|Please run \"terraform init\"`) + noInitErrRegexp = regexp.MustCompile(`Error: Could not satisfy plugin requirements|` + + `Error: Could not load plugin|` + // v0.13 + `Please run \"terraform init\"|` + // v1.1.0 early alpha versions (ref 89b05050) + `run:\s+terraform init`) // v1.1.0 (ref df578afd) noConfigErrRegexp = regexp.MustCompile(`Error: No configuration files`)