mirror of https://github.com/status-im/consul.git
Relplat 897 copywrite bot workarounds (#19200)
Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
This commit is contained in:
parent
a7fbd00865
commit
3716b69792
3
Makefile
3
Makefile
|
@ -438,6 +438,9 @@ codegen: codegen-tools ## Deep copy
|
||||||
@$(SHELL) $(CURDIR)/agent/consul/state/deep-copy.sh
|
@$(SHELL) $(CURDIR)/agent/consul/state/deep-copy.sh
|
||||||
@$(SHELL) $(CURDIR)/agent/config/deep-copy.sh
|
@$(SHELL) $(CURDIR)/agent/config/deep-copy.sh
|
||||||
copywrite headers
|
copywrite headers
|
||||||
|
# Special case for MPL headers in /api and /sdk
|
||||||
|
cd api && $(CURDIR)/build-support/scripts/copywrite-exceptions.sh
|
||||||
|
cd sdk && $(CURDIR)/build-support/scripts/copywrite-exceptions.sh
|
||||||
|
|
||||||
print-% : ; @echo $($*) ## utility to echo a makefile variable (i.e. 'make print-GOPATH')
|
print-% : ; @echo $($*) ## utility to echo a makefile variable (i.e. 'make print-GOPATH')
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
schema_version = 1
|
||||||
|
|
||||||
|
project {
|
||||||
|
license = "MPL-2.0"
|
||||||
|
copyright_year = 2023
|
||||||
|
|
||||||
|
header_ignore = []
|
||||||
|
}
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import "context"
|
import "context"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright (c) HashiCorp, Inc.
|
// Copyright (c) HashiCorp, Inc.
|
||||||
// SPDX-License-Identifier: BUSL-1.1
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
// The /v1/operator/audit-hash endpoint is available only in Consul Enterprise and
|
// The /v1/operator/audit-hash endpoint is available only in Consul Enterprise and
|
||||||
// interact with its audit logging subsystem.
|
// interact with its audit logging subsystem.
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/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
|
||||||
|
# to inject correct headers.
|
||||||
|
|
||||||
|
find . -type f -name '*.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
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
copywrite headers
|
|
@ -0,0 +1,8 @@
|
||||||
|
schema_version = 1
|
||||||
|
|
||||||
|
project {
|
||||||
|
license = "MPL-2.0"
|
||||||
|
copyright_year = 2023
|
||||||
|
|
||||||
|
header_ignore = []
|
||||||
|
}
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package retry
|
package retry
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
package retry
|
package retry
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
Loading…
Reference in New Issue