mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Remove -local flag from goimports check (#31555)
This commit is contained in:
parent
d8c14c4295
commit
985325a0fc
@ -8,11 +8,11 @@ if [[ -z ${target_files} ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
goimports_files=$(goimports -w -l -local github.com/hashicorp/terraform/ ${target_files})
|
goimports_files=$(goimports -w -l "${target_files}")
|
||||||
if [[ -n ${goimports_files} ]]; then
|
if [[ -n ${goimports_files} ]]; then
|
||||||
echo 'goimports needs running on the following files:'
|
echo 'goimports needs running on the following files:'
|
||||||
echo "${goimports_files}"
|
echo "${goimports_files}"
|
||||||
echo "You can use the command and flags \`goimports -w -l -local github.com/hashicorp/terraform/\` to reformat the code"
|
echo "You can use the command and flags \`goimports -w -l\` to reformat the code"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user