From 734485a27e1a148eb540d5d61497d3e4eacd54e3 Mon Sep 17 00:00:00 2001 From: Matt Thalman Date: Wed, 25 Oct 2023 15:39:45 -0500 Subject: [PATCH] Pin scancode version (#17602) --- eng/install-scancode.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eng/install-scancode.sh b/eng/install-scancode.sh index 9b705f624..cec368af9 100755 --- a/eng/install-scancode.sh +++ b/eng/install-scancode.sh @@ -2,12 +2,15 @@ set -euo pipefail -# https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-a-library-via-pip +# Install instructions: https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-a-library-via-pip + +# See latest release at https://github.com/nexB/scancode-toolkit/releases +SCANCODE_VERSION="32.0.8" pyEnvPath="/tmp/scancode-env" python3 -m venv $pyEnvPath source $pyEnvPath/bin/activate -pip install scancode-toolkit +pip install scancode-toolkit==$SCANCODE_VERSION deactivate # Setup a script which executes scancode in the virtual environment