diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a19ad98ccb..5e4b6cc4a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,11 +75,13 @@ jobs: 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 4480eede75..c58cfb5e75 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,9 @@ fmt: 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 d04cd9d166..7a4c8e64f3 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 b50e5d5734..8bae76d8c9 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 e08f40f95d..9bace81eb3 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -34,5 +34,12 @@ excludes = [ "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" ]