From 56b5f76e84b8b2a8f8ba743f916e59671da93a77 Mon Sep 17 00:00:00 2001 From: Abraham Gonzalez Date: Wed, 7 Aug 2024 14:05:13 -0700 Subject: [PATCH] Update generate-conda-lockfiles.sh --- scripts/generate-conda-lockfiles.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/generate-conda-lockfiles.sh b/scripts/generate-conda-lockfiles.sh index 2d4a2e8d47..05bc7bd99e 100755 --- a/scripts/generate-conda-lockfiles.sh +++ b/scripts/generate-conda-lockfiles.sh @@ -10,6 +10,11 @@ if [ ! -d "$REQS_DIR" ]; then exit 1 fi +if ! conda-lock --version | grep $(grep "conda-lock" $REQS_DIR/chipyard-base.yaml | sed 's/^ \+-.*=//'); then + echo "Invalid conda-lock version, make sure you're calling this script with the sourced chipyard env.sh" + exit 1 +fi + for TOOLCHAIN_TYPE in riscv-tools; do # note: lock file must end in .conda-lock.yml - see https://github.com/conda-incubator/conda-lock/issues/154 LOCKFILE=$REQS_DIR/conda-lock-reqs/conda-requirements-$TOOLCHAIN_TYPE-linux-64.conda-lock.yml