Skip to content

Commit

Permalink
build: exclude .go-version from imports check (#32141)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Nov 2, 2022
1 parent 52d724d commit 755757e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/goimportscheck.sh
Expand Up @@ -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
Expand Down

0 comments on commit 755757e

Please sign in to comment.