Re-enable copywrite with hack (#3569)

* Ignore license change commit from blame

This changed almost all the files in the repo

* Re-enable copywrite with hack

Adds a hack that removes existing copyright headers
from files before rerunning copywrite with directory
specific configuration.
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2023-08-11 15:02:29 -07:00
1 parent 29da0bcb92
commit bae219d461
5 files changed
+33 -2

No files matched your search

+3 -1
View File
@@ -5,4 +5,6 @@ f69fbf22552deac9ec81503d629fb70919acabdb
# Added license headers
3c29308673a9fb64c68ca27e15b4c9017a2d597e
# Upgraded buf which updated protobuf files
982c9c263c5d7f9822cdae4d8fe38cac8e1ff98f
982c9c263c5d7f9822cdae4d8fe38cac8e1ff98f
# Updated license to BUSL
29da0bcb923236b59fad97c3a66708b4d7e15bfb
+6 -1
View File
@@ -133,7 +133,7 @@ perms-table:
@go run internal/website/permstable/permstable.go
.PHONY: gen
gen: cleangen proto api cli perms-table fmt
gen: cleangen proto api cli perms-table fmt copywrite
### oplog requires protoc-gen-go v1.20.0 or later
# GO111MODULE=on go get -u github.com/golang/protobuf/protoc-gen-go@v1.40
@@ -263,6 +263,11 @@ protolint:
.PHONY: copywrite
copywrite:
copywrite headers
# In the protobuf API directories, remove the BUSL headers
# and rerun copywrite with the directory specific configuration.
cd internal/proto/controller/api && find . -type f -name '*.proto' -exec sed -i '1,3d' {} + && copywrite headers
cd internal/proto/controller/custom_options && find . -type f -name '*.proto' -exec sed -i '1,3d' {} + && copywrite headers
cd internal/proto/plugin && find . -type f -name '*.proto' -exec sed -i '1,3d' {} + && copywrite headers
.PHONY: website
# must have nodejs and npm installed
@@ -0,0 +1,8 @@
schema_version = 1
project {
license = "MPL-2.0"
copyright_year = 2020
header_ignore = []
}
@@ -0,0 +1,8 @@
schema_version = 1
project {
license = "MPL-2.0"
copyright_year = 2020
header_ignore = []
}
+8
View File
@@ -0,0 +1,8 @@
schema_version = 1
project {
license = "MPL-2.0"
copyright_year = 2020
header_ignore = []
}