diff --git a/scripts/update-license-dependencies.sh b/scripts/update-license-dependencies.sh index cd1446afb8..fddb25aff0 100755 --- a/scripts/update-license-dependencies.sh +++ b/scripts/update-license-dependencies.sh @@ -3,8 +3,6 @@ set -e set -u -go install github.com/google/go-licenses@v1.6.0 - if [ -d "vendor" ]; then echo "Please remove vendor directory before running this script" exit 255 @@ -16,4 +14,4 @@ if [ ! -f "go.mod" ]; then exit 255 fi -go-licenses report ./... --ignore github.com/sylabs/singularity/v4 --template scripts/LICENSE_DEPENDENCIES.tpl > LICENSE_DEPENDENCIES.md +$(go env GOROOT)/bin/go run github.com/google/go-licenses@v1.6.0 report ./... --ignore github.com/sylabs/singularity/v4 --template scripts/LICENSE_DEPENDENCIES.tpl > LICENSE_DEPENDENCIES.md