Skip to content

Commit

Permalink
revert: remove license-check which checks for license header (#191)
Browse files Browse the repository at this point in the history
* revert: remove license-check which checks for license header

Signed-off-by: Niladri Halder <[email protected]>

* style: remove license header from makefile

Signed-off-by: Niladri Halder <[email protected]>

---------

Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih authored Jul 1, 2024
1 parent 791f2a0 commit 3cc047f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: License Check
run: make license-check

unit-test:
# to ignore builds on release
if: ${{ (github.event.ref_type != 'tag') }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: License Check
run: make license-check

unit-test:
runs-on: ubuntu-latest
steps:
Expand Down
27 changes: 0 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# Copyright © 2020 The OpenEBS Authors
#
# Licensed 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.

GO111MODULE ?= on
export GO111MODULE

Expand Down Expand Up @@ -179,19 +165,6 @@ provisioner-localpv-image: provisioner-localpv
@cd buildscripts/provisioner-localpv && docker build -t ${PROVISIONER_LOCALPV_IMAGE_TAG} ${DBUILD_ARGS} . --no-cache
@rm buildscripts/provisioner-localpv/${PROVISIONER_LOCALPV}

.PHONY: license-check
license-check:
@echo "--> Checking license header..."
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*') ; do \
awk 'NR<=5' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \
done); \
if [ -n "$${licRes}" ]; then \
echo "license header checking failed:"; echo "$${licRes}"; \
exit 1; \
fi
@echo "--> Done checking license."
@echo


.PHONY: push
push:
Expand Down

0 comments on commit 3cc047f

Please sign in to comment.