diff options
author | Greg Becker <becker33@llnl.gov> | 2019-11-03 17:46:41 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-11-03 15:47:19 -0800 |
commit | 7cdb241f8087dea9815feaebc101518343822f65 (patch) | |
tree | 7db5121be069db2c7644ebbd9280ce366c1769a7 /LICENSE-MIT | |
parent | d670765b977666ab865d90aecfb2c7f4a3321391 (diff) | |
download | spack-7cdb241f8087dea9815feaebc101518343822f65.tar.gz spack-7cdb241f8087dea9815feaebc101518343822f65.tar.bz2 spack-7cdb241f8087dea9815feaebc101518343822f65.tar.xz spack-7cdb241f8087dea9815feaebc101518343822f65.zip |
environments: only write when necessary (#13546)
This changes Spack environments so that the YAML file associated with the environment is *only* written when necessary (i.e., if it is changed *by spack*). The lockfile is still written out as before.
There is a larger question here of which part of Spack should be responsible for setting defaults in config files, and how we can get rid of empty lists and data structures currently cluttering files like `compilers.yaml`. But that probably requires a rework of the default-setting validator in `spack.config`, as well as the code that uses `spack.config`. This will at least help for `spack.yaml`.
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions