Skip to content

Commit

Permalink
chore: fix license header (#1579)
Browse files Browse the repository at this point in the history
## Rationale
Those files should contain asf headers.

## Detailed Changes


## Test Plan
CI
  • Loading branch information
jiacai2050 authored Oct 21, 2024
1 parent e306cb5 commit 09dace7
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 17 additions & 0 deletions horaemeta/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 17 additions & 0 deletions integration_tests/sdk/go/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 8 additions & 1 deletion licenserc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]

0 comments on commit 09dace7

Please sign in to comment.