diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-05-01 15:06:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 15:06:10 +0200 |
commit | 3c3a4c75776ece43c95df46908dea026ac2a9276 (patch) | |
tree | bc423b383355b3f8deef9afebbca515025acdb65 /etc | |
parent | cfb34d19fe0027ed8d19f2b5edc8091bd9c1acd9 (diff) | |
download | spack-3c3a4c75776ece43c95df46908dea026ac2a9276.tar.gz spack-3c3a4c75776ece43c95df46908dea026ac2a9276.tar.bz2 spack-3c3a4c75776ece43c95df46908dea026ac2a9276.tar.xz spack-3c3a4c75776ece43c95df46908dea026ac2a9276.zip |
Factor YAML manifest manipulation out of the Environment class (#36927)
Change the signature of the Environment.__init__ method to have
a single argument, i.e. the directory where the environment manifest
is located. Initializing that directory is now delegated to a function
taking care of all the error handling upfront. Environment objects
require a "spack.yaml" to be available to be constructed.
Add a class to manage the environment manifest file. The environment
now delegates to an attribute of that class the responsibility of keeping
track of changes modifying the manifest. This allows simplifying the
updates of the manifest file, and helps keeping in sync the spec lists in
memory with the spack.yaml on disk.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions