mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat: rename pre-commit-terraform to pre-commit-opentofu, pt II
This commit is contained in:
parent
7f963c5906
commit
2e537a9cd4
10 changed files with 16 additions and 963 deletions
|
|
@ -1,4 +1,4 @@
|
|||
print(
|
||||
'`terraform_docs_replace` hook is DEPRECATED.'
|
||||
'For migration instructions see https://github.com/antonbabenko/pre-commit-terraform/issues/248#issuecomment-1290829226'
|
||||
'For migration instructions see https://github.com/tofuutils/pre-commit-opentofu/issues/248#issuecomment-1290829226'
|
||||
)
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ function common::parse_and_export_env_vars {
|
|||
|
||||
#######################################################################
|
||||
# This is a workaround to improve performance when all files are passed
|
||||
# See: https://github.com/antonbabenko/pre-commit-terraform/issues/309
|
||||
# See: https://github.com/tofuutils/pre-commit-opentofu/issues/309
|
||||
# Arguments:
|
||||
# hook_id (string) hook ID, see `- id` for details in .pre-commit-hooks.yaml file
|
||||
# files (array) filenames to check
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ function per_dir_hook_unique_part {
|
|||
# TODO: Remove in 2.0
|
||||
if [ ! "$mode" ]; then
|
||||
common::colorify "yellow" "DEPRECATION NOTICE: We introduced '--mode' flag for this hook.
|
||||
Check migration instructions at https://github.com/antonbabenko/pre-commit-terraform#terraform_providers_lock
|
||||
Check migration instructions at https://github.com/tofuutils/pre-commit-opentofu#terraform_providers_lock
|
||||
"
|
||||
common::terraform_init 'terraform providers lock' "$dir_path" || {
|
||||
exit_code=$?
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ function main {
|
|||
fi
|
||||
|
||||
common::colorify "yellow" "tfsec tool was deprecated, and replaced by trivy. You can check trivy hook here:"
|
||||
common::colorify "yellow" "https://github.com/antonbabenko/pre-commit-terraform/tree/master#terraform_trivy"
|
||||
common::colorify "yellow" "https://github.com/tofuutils/pre-commit-opentofu/tree/master#terraform_trivy"
|
||||
|
||||
common::per_dir_hook "$HOOK_ID" "${#ARGS[@]}" "${ARGS[@]}" "${FILES[@]}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue