chore: disable HashiCorp copywrite check for new IBM headers (#6304)
This commit is contained in:
1 parent
6aa5a7d2fe
commit
769fea1305
1 file changed
+9
-9
@@ -27,7 +27,6 @@ tools: golangci-lint
|
||||
go generate -tags tools tools/tools.go
|
||||
go install github.com/bufbuild/buf/cmd/buf@v1.27.2
|
||||
go install github.com/mfridman/tparse@v0.13.1
|
||||
go install github.com/hashicorp/copywrite@v0.16.6
|
||||
|
||||
# golangci-lint recommends installing the binary directly, instead of using go get
|
||||
# See the note: https://golangci-lint.run/usage/install/#install-from-source
|
||||
@@ -140,7 +139,7 @@ perms-table:
|
||||
@go run internal/website/permstable/permstable.go
|
||||
|
||||
.PHONY: gen
|
||||
gen: cleangen proto api cli perms-table fmt copywrite
|
||||
gen: cleangen proto api cli perms-table fmt #copywrite - Removing copywrite; we will need to switch to IBM's tooling, when available
|
||||
|
||||
### oplog requires protoc-gen-go v1.20.0 or later
|
||||
# GO111MODULE=on go get -u github.com/golang/protobuf/protoc-gen-go@v1.40
|
||||
@@ -285,15 +284,16 @@ protolint:
|
||||
cd internal/proto && buf breaking --against 'https://github.com/hashicorp/boundary.git#branch=stable-website,subdir=internal/proto' \
|
||||
--config buf.breaking.wire.yaml
|
||||
|
||||
.PHONY: copywrite
|
||||
copywrite:
|
||||
copywrite headers
|
||||
# Removing copywrite; we will need to switch to IBM's tooling, when available
|
||||
#.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
|
||||
cd internal/proto/worker/proxy/v1 && find . -type f -name '*.proto' -exec sed -i '1,3d' {} + && copywrite headers
|
||||
# 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
|
||||
# cd internal/proto/worker/proxy/v1 && find . -type f -name '*.proto' -exec sed -i '1,3d' {} + && copywrite headers
|
||||
|
||||
.PHONY: website
|
||||
# must have nodejs and npm installed
|
||||
|
||||
Reference in new issue
Block a user