Skip to content

Commit

Permalink
chore: add additional licenses and option to force installation of te…
Browse files Browse the repository at this point in the history
…mplates (#167)
  • Loading branch information
tricky42 authored Jan 3, 2025
1 parent 7b74549 commit 379fcc3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 21 additions & 2 deletions licenses/install
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
#!/bin/sh
set -e

# Default mono-install to false
FULL_INSTALL=false

# Parse command line arguments
while [ "$#" -gt 0 ]; do
case "$1" in
--full-install)
FULL_INSTALL=true
shift
;;
*)
echo "Unknown parameter: $1"
exit 1
;;
esac
done

{
echo
echo "Installing license checker engine ..."
echo
} 2>/dev/null

if [ ! -d .bin ]; then
mkdir .bin
fi

curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-engine.sh -o .bin/license-engine.sh
chmod +x .bin/license-engine.sh
curl https://raw.githubusercontent.com/ory/ci/master/licenses/licenses -o .bin/licenses
chmod +x .bin/licenses
curl https://raw.githubusercontent.com/ory/ci/master/licenses/list-licenses -o .bin/list-licenses
chmod +x .bin/list-licenses

if [ -f go.mod ]; then
if [ "$FULL_INSTALL" = true ] || [ -f go.mod ]; then
{
echo
echo "Installing the Go license checker ..."
Expand All @@ -26,7 +45,7 @@ if [ -f go.mod ]; then
curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-template-go.tpl -o .bin/license-template-go.tpl
fi

if [ -f package.json ]; then
if [ "$FULL_INSTALL" = true ] || [ -f package.json ]; then
{
echo
echo "Installing the Node license checker ..."
Expand Down
1 change: 1 addition & 0 deletions licenses/license-engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ APPROVED_MODULES=(
'github.com/ory-corp/webhook-target' # Ory IP
'@ory/keto-grpc-client.*' # Apache-2.0 - submodule of keto
'[email protected]' # MIT: https://github.com/Rich-Harris/golden-fleece/blob/master/LICENSE
'github.com/gogo/googleapis/.*' # Apache-2.0 https://github.com/gogo/googleapis/blob/master/LICENSE
)

# These lines in the output should be ignored (plain text, no regex).
Expand Down

0 comments on commit 379fcc3

Please sign in to comment.