From 8ceb835ec29603abf6779ac424a9209e7d1bd4f3 Mon Sep 17 00:00:00 2001 From: Kent Huang Date: Thu, 26 Oct 2023 17:08:28 +0800 Subject: [PATCH] [Fix] Pin oscrypto to a git refeence before it releanse new version Signed-off-by: Kent Huang --- compare-action/entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compare-action/entrypoint.sh b/compare-action/entrypoint.sh index 41d2aed..e1c3b99 100755 --- a/compare-action/entrypoint.sh +++ b/compare-action/entrypoint.sh @@ -39,6 +39,14 @@ for datasource_type in "$(yq '.dataSources[].type' ${PIPERIDER_WORKSPACE}/.piper ;; *) pip install -q --no-cache-dir piperider[${datasource_type}] || echo "[PipeRider] Failed to install piperider[${datasource_type}]"; true + # Patch oscrypto manually before the next release + # Ref: https://github.com/wbond/oscrypto/issues/75 + if [ "${datasource_type}" == "snowflake" ]; then + oscrypto_version=`pip list | grep oscrypto | awk '{print $2}' 2> /dev/null` + if [ "$oscrypto_version" == "1.3.0" ]; then + pip install oscrypto@git+https://github.com/wbond/oscrypto.git@d5f3437ed24257895ae1edd9e503cfb352e635a8 + fi + fi ;; esac done