Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Account for upcoming init error message change #228

Merged
merged 1 commit into from
Oct 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tfexec/exit_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`)

Expand Down