From 985325a0fc4b90cc7b17fcc75d62baeecc6dc080 Mon Sep 17 00:00:00 2001 From: Liam Cervante Date: Tue, 2 Aug 2022 15:08:38 +0100 Subject: [PATCH] Remove -local flag from goimports check (#31555) --- scripts/goimportscheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/goimportscheck.sh b/scripts/goimportscheck.sh index 6747d48d0d..7e46518324 100755 --- a/scripts/goimportscheck.sh +++ b/scripts/goimportscheck.sh @@ -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