Remove -local flag from goimports check (#31555)

This commit is contained in:
Liam Cervante 2022-08-02 15:08:38 +01:00 committed by GitHub
parent d8c14c4295
commit 985325a0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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