From 33e5d8cd8b402408e003ed197c7cd9870e9e4c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Mon, 5 Dec 2022 18:09:22 -0300 Subject: [PATCH 1/2] ci: unset LD_LIBRARY_PATH when using nix setup-python sets LD_LIBRARY_PATH, which appears to conflict with nix, and causes nix's python to load a system library instead of the nix variant. --- scripts/ci_test_dapp.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ci_test_dapp.sh b/scripts/ci_test_dapp.sh index 986605d5..53be2e6c 100755 --- a/scripts/ci_test_dapp.sh +++ b/scripts/ci_test_dapp.sh @@ -2,6 +2,11 @@ ### Test dapp integration +# work around having two python versions loading libraries from each other in CI +OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH" +alias crytic-compile="LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH crytic-compile" +unset LD_LIBRARY_PATH + DIR=$(mktemp -d) cd "$DIR" || exit 255 From 33fe0f6f06788ba8e2a43eed5ac40d4cfd17fdd0 Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Tue, 6 Dec 2022 10:00:46 +0100 Subject: [PATCH 2/2] minor --- scripts/ci_test_dapp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci_test_dapp.sh b/scripts/ci_test_dapp.sh index 53be2e6c..f481a88c 100755 --- a/scripts/ci_test_dapp.sh +++ b/scripts/ci_test_dapp.sh @@ -4,7 +4,7 @@ # work around having two python versions loading libraries from each other in CI OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH" -alias crytic-compile="LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH crytic-compile" +alias crytic-compile='LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH crytic-compile' unset LD_LIBRARY_PATH DIR=$(mktemp -d)