diff options
author | robo-wylder <67443774+robo-wylder@users.noreply.github.com> | 2020-07-23 11:00:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 11:00:58 -0700 |
commit | 3c145b42bc62cd9747657447da548ea95647e3e1 (patch) | |
tree | 419b9bb8debb754d34fab1d06c629afb1280aeb9 /.coveragerc | |
parent | ae82650174cd845fafa4f0e79d90b2a2d426e4c3 (diff) | |
download | spack-3c145b42bc62cd9747657447da548ea95647e3e1.tar.gz spack-3c145b42bc62cd9747657447da548ea95647e3e1.tar.bz2 spack-3c145b42bc62cd9747657447da548ea95647e3e1.tar.xz spack-3c145b42bc62cd9747657447da548ea95647e3e1.zip |
environment-views: fix bug where missing recipe/repo breaks env commands (#17608)
* environment-views: fix bug where missing recipe/repo breaks env commands
When a recipe or a repo has been removed from Spack and an environment
is active, it causes the view activation to crash Spack before any
commands can be executed. Further, the error message it not at all clear
in explaining the issue.
This forces view regeneration to always start from scratch to avoid the
missing package recipes, and defaults add_view=False in main for views activated
by the `spack -e` option.
* add messages to env status and deactivate
Warn users that a view may be corrupt when deactivating an environment
or checking its status while active. Updated message for activate.
* tests for view checking
Co-authored-by: Gregory Becker <becker33@llnl.gov>
Diffstat (limited to '.coveragerc')
0 files changed, 0 insertions, 0 deletions