chore: fix license header (#1579)
## Rationale
Those files should contain asf headers.
## Detailed Changes
## Test Plan
CI
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a19ad98..5e4b6cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -75,11 +75,13 @@
rustup component add clippy
rustup component add rustfmt
cargo install --git https://github.com/DevinR528/cargo-sort --rev 55ec890 --locked
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.8.1/hawkeye-installer.sh | sh
- name: Run Style Check
run: |
- make clippy
make fmt
make check-cargo-toml
+ make check-asf-header
+ make clippy
unit-test:
name: unit-test
diff --git a/Makefile b/Makefile
index 4480eed..c58cfb5 100644
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,9 @@
check-cargo-toml:
cd $(DIR); cargo sort --workspace --check
+check-asf-header:
+ cd $(DIR); hawkeye check
+
udeps:
cd $(DIR); cargo udeps --all-targets --all-features --workspace
diff --git a/horaemeta/go.mod b/horaemeta/go.mod
index d04cd9d..7a4c8e6 100644
--- a/horaemeta/go.mod
+++ b/horaemeta/go.mod
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
module github.com/apache/incubator-horaedb-meta
go 1.21
diff --git a/integration_tests/sdk/go/go.mod b/integration_tests/sdk/go/go.mod
index b50e5d5..8bae76d 100644
--- a/integration_tests/sdk/go/go.mod
+++ b/integration_tests/sdk/go/go.mod
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
module go-sdk-test
go 1.21
diff --git a/licenserc.toml b/licenserc.toml
index e08f40f..9bace81 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -34,5 +34,12 @@
"src/components/future_ext/src/cancel.rs",
"src/components/tracing_util/src/lib.rs",
"src/components/tracing_util/src/logging.rs",
- "src/components/tracing_util/Cargo.toml"
+ "src/components/tracing_util/Cargo.toml",
+ "DISCLAIMER",
+ "NOTICE",
+ "horaemeta/DEPENDENCIES.csv",
+ "DEPENDENCIES.tsv",
+ # Test files
+ "*snap",
+ "*result"
]