spack/lib/spack
Todd Gamblin 233dabbd4f 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>
2021-10-28 15:37:44 -07:00
..
docs config: fix SPACK_DISABLE_LOCAL_CONFIG, remove $user_config_path (#27022) 2021-10-28 21:33:44 +00:00
env cc: make error messages more clear 2021-10-04 18:30:19 -07:00
external Document backport in py (#26897) 2021-10-22 19:14:35 +02:00
llnl containerize: pin the Spack version used in a container (#21910) 2021-10-25 13:09:27 -07:00
spack bugfix: config edit should work with a malformed spack.yaml 2021-10-28 15:37:44 -07:00