summaryrefslogtreecommitdiff
path: root/lib/spack/docs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/docs')
-rw-r--r--lib/spack/docs/environments.rst9
-rw-r--r--lib/spack/docs/pipelines.rst2
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/spack/docs/environments.rst b/lib/spack/docs/environments.rst
index cec7224a86..55ac458a3c 100644
--- a/lib/spack/docs/environments.rst
+++ b/lib/spack/docs/environments.rst
@@ -167,15 +167,6 @@ Any directory can be treated as an environment if it contains a file
$ spack env activate -d /path/to/directory
-Spack commands that are environment sensitive will also act on the
-environment any time the current working directory contains a
-``spack.yaml`` file. Changing working directory to a directory
-containing a ``spack.yaml`` file is equivalent to the command:
-
-.. code-block:: console
-
- $ spack env activate -d /path/to/dir --without-view
-
Anonymous specs can be created in place using the command:
.. code-block:: console
diff --git a/lib/spack/docs/pipelines.rst b/lib/spack/docs/pipelines.rst
index ee3b4e8ad6..34ff9cfc6d 100644
--- a/lib/spack/docs/pipelines.rst
+++ b/lib/spack/docs/pipelines.rst
@@ -45,6 +45,7 @@ for setting up a build pipeline are as follows:
tags:
- <custom-tag>
script:
+ - spack env activate .
- spack ci generate
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/pipeline.yml"
artifacts:
@@ -384,6 +385,7 @@ a custom spack and make sure the generated rebuild jobs will clone it too:
- git clone ${SPACK_REPO} --branch ${SPACK_REF}
- . ./spack/share/spack/setup-env.sh
script:
+ - spack env activate .
- spack ci generate
--spack-repo ${SPACK_REPO} --spack-ref ${SPACK_REF}
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/pipeline.yml"