diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-03-20 13:51:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 13:51:30 +0100 |
commit | 88d78025a63942070c5325326e3f649c495ba35f (patch) | |
tree | 6219e145f2bdf1c941add96025150f7c2bc45755 /share | |
parent | 7e981d83fd74dcf18d65564b268da0260895b741 (diff) | |
download | spack-88d78025a63942070c5325326e3f649c495ba35f.tar.gz spack-88d78025a63942070c5325326e3f649c495ba35f.tar.bz2 spack-88d78025a63942070c5325326e3f649c495ba35f.tar.xz spack-88d78025a63942070c5325326e3f649c495ba35f.zip |
spack install: simplify behavior when inside environments (#35206)
Example one:
```
spack install --add x y z
```
is equivalent to
```
spack add x y z
spack concretize
spack install --only-concrete
```
where `--only-concrete` installs without modifying spack.yaml/spack.lock
Example two:
```
spack install
```
concretizes current spack.yaml if outdated and installs all specs.
Example three:
```
spack install x y z
```
concretizes current spack.yaml if outdated and installs *only* concrete
specs in the environment that match abstract specs `x`, `y`, or `z`.
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/depfile/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/templates/depfile/Makefile b/share/spack/templates/depfile/Makefile index 3e844176bc..a50304a8be 100644 --- a/share/spack/templates/depfile/Makefile +++ b/share/spack/templates/depfile/Makefile @@ -19,11 +19,11 @@ SPACK_INSTALL_FLAGS ?= {% endif %} # The spack install commands are of the form: -# spack -e my_env --no-add --only=package --only=concrete /hash +# spack -e my_env --only=package --only=concrete /hash # This is an involved way of expressing that Spack should only install # an individual concrete spec from the environment without deps. {{ install_target }}/%: | {{ dirs_target }} - {{ jobserver_support }}$(SPACK) -e '{{ environment }}' install $(SPACK_BUILDCACHE_FLAG) $(SPACK_INSTALL_FLAGS) --only-concrete --only=package --no-add /$(HASH) # $(SPEC) + {{ jobserver_support }}$(SPACK) -e '{{ environment }}' install $(SPACK_BUILDCACHE_FLAG) $(SPACK_INSTALL_FLAGS) --only-concrete --only=package /$(HASH) # $(SPEC) @touch $@ {{ install_deps_target }}/%: | {{ dirs_target }} |