spack/share/spack
Richarda Butler f634d48b7c Include concrete environments with include_concrete (#33768)
Add the ability to include any number of (potentially nested) concrete environments, e.g.:

```yaml
   spack:
     specs: []
     concretizer:
         unify: true
     include_concrete:
     - /path/to/environment1
     - /path/to/environment2
```

or, from the CLI:

```console
   $ spack env create myenv
   $ spack -e myenv add python
   $ spack -e myenv concretize
   $ spack env create --include-concrete myenv included_env
```

The contents of included concrete environments' spack.lock files are
included in the environment's lock file at creation time. Any changes
to included concrete environments are only reflected after the environment
is re-concretized from the re-concretized included environments.

- [x] Concretize included envs
- [x] Save concrete specs in memory by hash
- [x] Add included envs to combined env's lock file
- [x] Add test
- [x] Update documentation

    Co-authored-by: Kayla Butler <<butler59@llnl.gov>
    Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.co
m>
    Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
    Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2024-05-08 14:19:22 +02:00
..
bash Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
bootstrap Update bootstrap buildcache to support Python 3.12 (#40404) 2023-10-11 19:03:17 +02:00
csh Fix setup-env when going back and forth between instances (#40924) 2024-01-05 11:31:32 -06:00
docker Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
docs/docker/module-file-tutorial Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
fish Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
gitlab/cloud_pipelines gitlab: dont build paraview for neoverse v2 (#44060) 2024-05-08 14:19:22 +02:00
keys update tutorial command for v0.18.0 and new gpg key (#30904) 2022-05-28 02:36:20 +00:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
templates containers: add ubuntu 24.04 (#43881) 2024-05-01 13:37:13 +02:00
setup-env.csh Fix setup-env when going back and forth between instances (#40924) 2024-01-05 11:31:32 -06:00
setup-env.fish Fix setup-env when going back and forth between instances (#40924) 2024-01-05 11:31:32 -06:00
setup-env.ps1 Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
setup-env.sh Fix setup-env when going back and forth between instances (#40924) 2024-01-05 11:31:32 -06:00
setup-tutorial-env.sh Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
spack-completion.bash Include concrete environments with include_concrete (#33768) 2024-05-08 14:19:22 +02:00
spack-completion.fish Include concrete environments with include_concrete (#33768) 2024-05-08 14:19:22 +02:00