diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2021-10-28 10:46:51 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2021-10-28 15:37:44 -0700 |
commit | 233dabbd4fdcb1806e73fcedb1a12f6bdd624021 (patch) | |
tree | 5c316ed974aad507273178b6d8fb72572fb497cf /etc | |
parent | 374e3465c5efe6cc794141967885be2824f8e10a (diff) | |
download | spack-233dabbd4fdcb1806e73fcedb1a12f6bdd624021.tar.gz spack-233dabbd4fdcb1806e73fcedb1a12f6bdd624021.tar.bz2 spack-233dabbd4fdcb1806e73fcedb1a12f6bdd624021.tar.xz spack-233dabbd4fdcb1806e73fcedb1a12f6bdd624021.zip |
bugfix: config edit should work with a malformed `spack.yaml`
If you don't format `spack.yaml` correctly, `spack config edit` still fails and
you have to edit your `spack.yaml` manually.
- [x] Add some code to `_main()` to defer `ConfigFormatError` when loading the
environment, until we know what command is being run.
- [x] Make `spack config edit` use `SPACK_ENV` instead of the config scope
object to find `spack.yaml`, so it can work even if the environment is bad.
Co-authored-by: scheibelp <scheibel1@llnl.gov>
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions