Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Apache License #143

Merged
merged 46 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
761ce31
add npm in workflow
cjcchen May 4, 2024
09cbe25
test
cjcchen May 4, 2024
51fce57
add workflow
cjcchen May 4, 2024
3d90959
add path
cjcchen May 4, 2024
0eb1ea7
add path
cjcchen May 4, 2024
eff1d4f
add path
cjcchen May 4, 2024
e6244a7
add path
cjcchen May 4, 2024
89ed538
add path
cjcchen May 4, 2024
6a5793b
add path
cjcchen May 4, 2024
87bcf9a
add path
cjcchen May 4, 2024
0bf5e2d
add license
cjcchen May 4, 2024
576b364
add license
cjcchen May 4, 2024
7c6574e
add license
cjcchen May 4, 2024
c3e0ef1
add license
cjcchen May 4, 2024
db99346
add license
cjcchen May 4, 2024
e9958d4
add license
cjcchen May 4, 2024
b91691a
add license
cjcchen May 4, 2024
62c201d
add license
cjcchen May 4, 2024
2cdf8a2
add license
cjcchen May 4, 2024
44added
add license
cjcchen May 4, 2024
3cc80df
add license
cjcchen May 4, 2024
dc900cc
add license
cjcchen May 4, 2024
31235d9
add license
cjcchen May 4, 2024
8bdbf5d
add license
cjcchen May 4, 2024
6236b25
add license
cjcchen May 4, 2024
680a553
add license
cjcchen May 4, 2024
ff34a40
add license
cjcchen May 4, 2024
4b30a24
add license
cjcchen May 4, 2024
25b42c7
add license
cjcchen May 4, 2024
acd1cc4
add license
cjcchen May 4, 2024
ae1e417
add license
cjcchen May 4, 2024
7f81b26
add license
cjcchen May 4, 2024
8cbaba9
add license
cjcchen May 4, 2024
fc0a5c1
add license
cjcchen May 4, 2024
f0adffc
add license
cjcchen May 4, 2024
c1aa0f4
add license
cjcchen May 4, 2024
8b0eda1
add license
cjcchen May 4, 2024
ea6d98c
add license
cjcchen May 4, 2024
0e73ef6
add license
cjcchen May 4, 2024
e8928c4
add license
cjcchen May 4, 2024
68a3564
add license
cjcchen May 4, 2024
e74c36c
add license
cjcchen May 4, 2024
d487d26
add loc
cjcchen May 4, 2024
dc0af0b
add loc
cjcchen May 4, 2024
53ae277
add loc
cjcchen May 4, 2024
a0f337e
fix build
cjcchen May 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ jobs:
name: check license
runs-on: ubuntu-latest
steps:
- name: Check License Header
uses: apache/skywalking-eyes/header@main
- name: Checkout
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
ref: ${{ env.BRANCH_NAME }}

- name: Check License Header
uses: apache/skywalking-eyes/header@main
14 changes: 10 additions & 4 deletions .github/workflows/loc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: LOC

on:
push:
branches:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,9 +16,15 @@ jobs:
repository: ${{github.repository}}
ref: ${{ env.BRANCH_NAME }}

- name: NPM Init
run: npm init -y

- name: NPM Install
run: npm install badgen @actions/core glob-gitignore

- name: Launch the local action
uses: ./ # Uses an action in the root directory
id: badge
uses: ./third_party/loc_script/ # Uses an action in the root directory
with:
debug: true
directory: ./
Expand Down
19 changes: 19 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ header:
- '**/*.md'
- 'LICENSE'
- 'NOTICE'
- '.*'
- '.**/**'
- '**/*.conf'
- '**/*.config'
- '**/*.json'
- '**/*.sol'
- '**/*.yaml'
- '**/*.css'
- '**/*.yml'
- 'repositories.bzl'
- 'documents/**'
- 'CNAME'
- 'DISCLAIMER'
- 'Docker/**'
- 'WORKSPACE'
- 'skywalking-eyes/**'
- 'third_party/**.BUILD'
- 'third_party/loc_script/src/index.js'


comment: on-failure

19 changes: 19 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# 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.
#

package(default_visibility = ["//visibility:public"])

load("@rules_foreign_cc//foreign_cc:defs.bzl", "make")
Expand Down
18 changes: 18 additions & 0 deletions api/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

cc_binary(
Expand Down
19 changes: 19 additions & 0 deletions api/kv_operation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# 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.
#

import os
import sys
current_file_path = os.path.abspath(__file__)
Expand Down
19 changes: 19 additions & 0 deletions api/pybind_kv_service.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* 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.
*/

#include <fcntl.h>
#include <getopt.h>
#include <pybind11/pybind11.h>
Expand Down
18 changes: 18 additions & 0 deletions benchmark/protocols/pbft/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:private"])

load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
Expand Down
18 changes: 18 additions & 0 deletions benchmark/protocols/poe/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:private"])

load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
Expand Down
18 changes: 18 additions & 0 deletions chain/state/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
18 changes: 18 additions & 0 deletions chain/storage/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
18 changes: 18 additions & 0 deletions chain/storage/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

load("@rules_cc//cc:defs.bzl", "cc_proto_library")
Expand Down
19 changes: 19 additions & 0 deletions chain/storage/proto/kv.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* 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.
*/

syntax = "proto3";

package resdb.storage;
Expand Down
19 changes: 19 additions & 0 deletions chain/storage/proto/leveldb_config.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* 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.
*/

syntax = "proto3";

package resdb.storage;
Expand Down
19 changes: 19 additions & 0 deletions chain/storage/proto/rocksdb_config.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* 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.
*/

syntax = "proto3";

package resdb.storage;
Expand Down
18 changes: 18 additions & 0 deletions chain/storage/setting/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
Expand Down
18 changes: 18 additions & 0 deletions common/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# 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.
#

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
Loading
Loading