提交 9389f462 编写于 作者: R Renaud Gaubert

Remove license-checker.

In the future we will be using pre-existing industry standard tools
such as coreos'
https://github.com/coreos/license-bill-of-materials/Signed-off-by: NRenaud Gaubert <rgaubert@nvidia.com>
上级 d95ffa54
FROM debian:buster-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ruby \
ruby-dev \
bundler \
cmake \
pkg-config \
git \
build-essential \
libssl-dev
RUN gem install licensee
CMD ["/bin/bash"]
#! /bin/bash
set -ex
find . \( -path ./.git -o -path ./license \) -prune -o -print -type f | \
grep -i -E "license|copying" > /tmp/LICENSES.list
for path in `cat /tmp/LICENSES.list`; do
# Print the license for logging purposes
licensee detect ${path} | tee -a /tmp/LICENSE.full
# Ensure the format is of the form "${path} ${license}"
license=$(licensee detect ${path} | \
grep '^License:' | tr -s ' ' | awk '{print $2}')
confidence=$(licensee detect ${path} | \
tr -s ' ' | grep -E '^ Confidence:' | awk '{print $2}')
echo "Inspecting License ${license} (${confidence}) at ${path}" | tee -a /tmp/LICENSE.result
if grep -Fxq "${license}" ./license/whitelist.txt; then
continue
fi
echo "Found unexpected license at ${path}" | tee -a /tmp/LICENSE.result
if grep -Fq "${path}" ./license/whitelist.txt; then
echo -e "There was a manual inspection for this license\n" | tee -a /tmp/LICENSE.result
continue
fi
cat /tmp/LICENSE.result
exit 1
done
cat /tmp/LICENSE.result
Apache-2.0
BSD-3-Clause
MIT
ISC
./runtime/src/vendor/github.com/pmezard/go-difflib/LICENSE, BSD
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册