From ad35129486d52ca8db22120b1df8666309f3c25b Mon Sep 17 00:00:00 2001 From: Thy Ton Date: Wed, 8 Jan 2025 12:39:28 -0800 Subject: [PATCH] update copywrite exceptions to exclude *_ent.go (#29315) --- scripts/copywrite-exceptions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/copywrite-exceptions.sh b/scripts/copywrite-exceptions.sh index 0e55acb400..0c3c56d146 100755 --- a/scripts/copywrite-exceptions.sh +++ b/scripts/copywrite-exceptions.sh @@ -1,10 +1,11 @@ #!/bin/sh # Used as a stopgap for copywrite bot in MPL-licensed subdirs, detects BUSL licensed -# headers and deletes them, then runs the copywrite bot to utilize local subdir config +# headers in only files intended for public users, and deletes them, +# then runs the copywrite bot to utilize local subdir config # to inject correct headers. -find . -type f -name '*.go' | while read line; do +find . -type f -name '*.go' -not -name '*_ent.go' | while read line; do if grep "SPDX-License-Identifier: BUSL-1.1" $line; then sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line sed -i '/Copyright (c) HashiCorp, Inc./d' $line