Skip to content
Snippets Groups Projects
Commit 931d9641 authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

fix: check if env is complete before fetching

spack fetch --missing fails when there are no missing packages
parent 01c24df8
No related branches found
No related tags found
No related merge requests found
Pipeline #28293 passed with stage
in 1 hour, 27 minutes, and 9 seconds
......@@ -80,7 +80,7 @@ spack env activate $EBRAINS_SPACK_ENV
# fetch all sources
spack concretize --fresh --test root
spack fetch --dependencies --missing
spack-python -c "exit(not len(spack.environment.active_environment().uninstalled_specs()))" && spack fetch --dependencies --missing
rm $SPACK_ROOT/var/spack/environments/$EBRAINS_SPACK_ENV/spack.lock
# install the environment, use 2 jobs to reduce the amount of required RAM
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment