From 214246c3880c120d24f497c14944d040c96c82a0 Mon Sep 17 00:00:00 2001 From: The Terraform Team <52939924+teamterraform@users.noreply.github.com> Date: Wed, 2 Nov 2022 11:55:45 -0400 Subject: [PATCH] backport of commit 3414456babab3f0de2dcd6453d419086d439a9f8 (#32144) Co-authored-by: Katy Moe --- scripts/goimportscheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/goimportscheck.sh b/scripts/goimportscheck.sh index e53cafe54de3..834fc6c99724 100755 --- a/scripts/goimportscheck.sh +++ b/scripts/goimportscheck.sh @@ -29,7 +29,7 @@ fi # "IFS" environment variable, but the primary place we want to run this right # now is in our "quick checks" workflow and that _does_ have a reasonably # modern version of Bash. -readarray -t target_files < <(git diff --name-only ${base_branch} --diff-filter=MA | grep "\.go" | grep -v ".pb.go") +readarray -t target_files < <(git diff --name-only ${base_branch} --diff-filter=MA | grep "\.go" | grep -v ".pb.go" | grep -v ".go-version") # NOTE: The above intentionally excludes .pb.go files because those are # generated by a tool (protoc-gen-go) which itself doesn't produce