exclude *_ent_test.go from copywrite-exceptions.sh (#29319)

This commit is contained in:
Thy Ton
2025-01-08 13:21:19 -08:00
committed by GitHub
parent ad35129486
commit 607991e551

View File

@@ -5,7 +5,7 @@
# then runs the copywrite bot to utilize local subdir config # then runs the copywrite bot to utilize local subdir config
# to inject correct headers. # to inject correct headers.
find . -type f -name '*.go' -not -name '*_ent.go' | while read line; do find . -type f -name '*.go' -not -name '*_ent.go' -not -name '*_ent_test.go' | while read line; do
if grep "SPDX-License-Identifier: BUSL-1.1" $line; then if grep "SPDX-License-Identifier: BUSL-1.1" $line; then
sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line
sed -i '/Copyright (c) HashiCorp, Inc./d' $line sed -i '/Copyright (c) HashiCorp, Inc./d' $line