From 0de1d016ef0e87eb7b4132f9768c8cd6a044784d Mon Sep 17 00:00:00 2001 From: psakievich Date: Sun, 15 Nov 2026 23:23:15 -0500 Subject: [PATCH] Dev Workflows: Remove variant propagation Variant propagation has a few corner cases that are not ironed out for v1.2. The tutorial hit a case where it can't adjust an external spec which is in range of the propagation. Adjust for a single duplicate spec to still show the capability of combinatoric develop builds in a single spack environment. --- tutorial_developer_workflows.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tutorial_developer_workflows.rst b/tutorial_developer_workflows.rst index 4c4909da8..619463aa3 100644 --- a/tutorial_developer_workflows.rst +++ b/tutorial_developer_workflows.rst @@ -354,15 +354,18 @@ Developers can build both cases from a single ``spack install`` as long as the d # First we have to allow repeat specs in the environment $ spack config add concretizer:unify:false - # Next we need to specify the specs we want ('==' propagates the variant to deps) - $ spack change macsio build_type==Release - $ spack add macsio+scr build_type==Debug + # Turn the view off since we will have duplicate specs (could have added a projection instead) + $ spack config add view:false + # Next we need to specify the specs we want + $ spack change macsio build_type=Release + $ spack add macsio+scr build_type=Debug # Inspect the graph for multiple dev_path= $ spack concretize -f While we will not work through this example, it illustrates how the ``dev_path`` for ``build_type=Release`` and ``build_type=Debug`` points to the same source code. If we want to do most of our incremental builds with the ``Release`` build and periodically check the results with the ``Debug`` build, we can combine the workflow from the previous example. -We can enter the ``Release`` build environment using ``spack build-env scr build_type=Release -- bash`` and navigate with ``spack cd -b scr build_type=Release``. -Note that since there are two ``scr`` specs in the environment, we must distinguish which one we want for these commands. +We can enter the ``Release`` build environment using ``spack build-env macsio build_type=Release -- bash`` and navigate with ``spack cd -b macsio build_type=Release``. + +Note that since there are two ``macsio`` specs in the environment, we must distinguish which one we want for these commands. When we are ready to check our changes in the debug build, we can exit the build environment subshell, rerun ``spack install`` to rebuild everything, and then inspect the debug build using our preferred method.