Skip to content
Closed
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
4 changes: 4 additions & 0 deletions hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ function match_validate_errors {
"Could not load plugin") return 1 ;;
"Missing required provider") return 1 ;;
*"there is no package for"*"cached in .terraform/providers") return 1 ;;
*"could not retrieve the list of available versions for provider"*) return 1 ;;
*"unexpected value returned by API"*) return 1 ;;
*"plugin is cached but contents have changed"*) return 1 ;;
*"the plugin cache directory is invalid"*) return 1 ;;
esac
done < <(jq -rc '.diagnostics[]' <<< "$validate_output")

Expand Down
Loading