Managing the Conda Lock File
The default conda environment set by
build-setup.sh uses the lock file (“*.conda-lock.yml”) in
This file is derived from the conda requirements files (
*.yaml) also located at
Updating Conda Requirements
If developers want to update the requirements files, they should also update the lock file accordingly. There are two different methods:
build-setup.sh --unpinned-deps. This will update the lock file in place so that it can be committed and will re-setup the FireSim repository.
conda-lock -f <conda requirements file> -f <conda requirements file> --lockfile <conda lock file>
Caveats of the Conda Lock File and CI
Unfortunately, so far as we know, there is no way to derive the conda requirements files from the conda lock file.
Thus, there is no way to verify that a lock file satisfies a set of requirements given by a requirements file(s).
It is recommended that anytime you update a requirements file, you update the lock file in the same PR.
This check is what the
check-conda-lock-modified CI job does.
It doesn’t check that the lock file and requirements files have the same packages and versions, it only checks that all files are modified in the PR.