File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ function match_validate_errors {
55
55
" Module version requirements have changed" ) return 1 ;;
56
56
" Module not installed" ) return 1 ;;
57
57
" Could not load plugin" ) return 1 ;;
58
+ * " there is no package for" * " cached in .terraform/providers" ) return 1 ;;
58
59
esac
59
60
done < <( jq -rc ' .diagnostics[]' <<< " $validate_output" )
60
61
@@ -100,7 +101,7 @@ function per_dir_hook_unique_part {
100
101
101
102
case $key in
102
103
--retry-once-with-cleanup)
103
- if [ $retry_once_with_cleanup ]; then
104
+ if [ " $retry_once_with_cleanup " ]; then
104
105
common::colorify " yellow" ' Invalid hook config. Make sure that you specify not more than one "--retry-once-with-cleanup" flag'
105
106
exit 1
106
107
fi
@@ -117,7 +118,7 @@ function per_dir_hook_unique_part {
117
118
return $exit_code
118
119
}
119
120
120
- # In case `terraform validate` failed to execute
121
+ # In case `terraform validate` failed to execute
121
122
# - check is simple `terraform init` will help
122
123
common::terraform_init ' terraform validate' " $dir_path " || {
123
124
exit_code=$?
You can’t perform that action at this time.
0 commit comments