mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 07:33:32 -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
|
||||
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
|
||||
echo 'goimports needs running on the following 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
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user