summaryrefslogtreecommitdiff
path: root/lib/spack/docs
diff options
context:
space:
mode:
authorTamara Dahlgren <dahlgren1@llnl.gov>2020-03-09 15:52:13 -0700
committerTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2020-06-23 10:22:41 -0700
commit96932d65a819a08fe40dd4120b0ed05ed8011e01 (patch)
treea87b8a95529852f4e07e4ecbad997d30640abe57 /lib/spack/docs
parentf54a8a77b46dbbed97243a7d1d627d6f581f0b91 (diff)
downloadspack-96932d65a819a08fe40dd4120b0ed05ed8011e01.tar.gz
spack-96932d65a819a08fe40dd4120b0ed05ed8011e01.tar.bz2
spack-96932d65a819a08fe40dd4120b0ed05ed8011e01.tar.xz
spack-96932d65a819a08fe40dd4120b0ed05ed8011e01.zip
Added support for --fail-fast install option to terminate on first failure
Diffstat (limited to 'lib/spack/docs')
-rw-r--r--lib/spack/docs/packaging_guide.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index 840c29454b..1f246c0faa 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -4167,16 +4167,23 @@ want to clean up the temporary directory, or if the package isn't
downloading properly, you might want to run *only* the ``fetch`` stage
of the build.
+Spack performs best-effort installation of package dependencies by default,
+which means it will continue to install as many dependencies as possible
+after detecting failures. If you are trying to install a package with a
+lot of dependencies where one or more may fail to build, you might want to
+try the ``--fail-fast`` option to stop the installation process on the first
+failure.
+
A typical package workflow might look like this:
.. code-block:: console
$ spack edit mypackage
- $ spack install mypackage
+ $ spack install --fail-fast mypackage
... build breaks! ...
$ spack clean mypackage
$ spack edit mypackage
- $ spack install mypackage
+ $ spack install --fail-fast mypackage
... repeat clean/install until install works ...
Below are some commands that will allow you some finer-grained