Resolve "mpsd-software install error should only show release branches"
Closes #50 (closed) The MR implements the folloing:
- Fix typos.
- print only "released" branch on checkout failure: before:
luedersm@poppyseed:~/mpsd-software$ mpsd-software install dev-23b foss2022a-serial
[15:09:01] ERROR Couldnt find branch=releases/dev-23b filesystem_utils.py:137
Available branches are ['* releases/23c',
'18-make-target-for-foss-cuda-mpi',
'21-octopus-module-inside-toolchians', '23b-in-debian12',
'28-implement-intel-2021a-toolchain',
'42-23b-berkeleygw-has-no-scalapack-variant-in-spackv0-20',
'99589-Enable-specifying_of_system_compiler', 'HEAD ->
origin/releases/23c', 'add-perl-yaml',
'add-psolver-into-toolchains', 'dev-23a', 'develop',
'docker-mount-buildcache',
'fix-non-mpi-packages-in-build-matrix', 'no-padding',
'releases/23b', 'releases/23c', 'releases/24a',
'releases/dev-23a', 'releases/v0000a', 'test-mpcdf-compile',
'']
after:
❯ mpsd-software install test foss2022a-serial
[23:33:37] ERROR Couldn't find the branch=releases/test filesystem_utils.py:140
Available branches are ['releases/23b', 'releases/23c', 'releases/24a', 'releases/dev-23a',
'releases/v0000a']
- remove the mpsd_release folder which was created by the clone, in order to prevent subsequent runs of the faulty mpsd_release from passing.
before:
$ mpsd-software install test foss2021a-mpi
Couldnt find branch .......... # But the test/spe folder is created
$ mpsd-software install test foss2021a-mpi
Cloning spack ................. # Since the folder exists, the clone is not run thus the installer continues with the faulty mpsd_release
after:
$ mpsd-software install test foss2021a-mpi
Couldn't find the branch .......... # the test/spe folder is deleted
$ mpsd-software install test foss2021a-mpi
Couldn't find the branch .......... # the test/spe folder is deleted
Edited by Ashwin Kumar Karnad