summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-05-01 15:06:10 +0200
committerGitHub <noreply@github.com>2023-05-01 15:06:10 +0200
commit3c3a4c75776ece43c95df46908dea026ac2a9276 (patch)
treebc423b383355b3f8deef9afebbca515025acdb65 /var
parentcfb34d19fe0027ed8d19f2b5edc8091bd9c1acd9 (diff)
downloadspack-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 'var')
0 files changed, 0 insertions, 0 deletions