Skip to content

Commit 33e5d8c

Browse files
elopezmontyly
authored andcommitted
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.
1 parent 46d503b commit 33e5d8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/ci_test_dapp.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
### Test dapp integration
44

5+
# work around having two python versions loading libraries from each other in CI
6+
OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
7+
alias crytic-compile="LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH crytic-compile"
8+
unset LD_LIBRARY_PATH
9+
510
DIR=$(mktemp -d)
611
cd "$DIR" || exit 255
712

0 commit comments

Comments
 (0)