You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial_developer_workflows.rst
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,14 +233,24 @@ If we don't want Spack to update the concrete environment's specs we can pass th
233
233
Using ``---no-modify-concrete-spec`` will require you to force concretize an environment to have the develop specs take affect.
234
234
235
235
There are a limited set of use-cases where one might want to use this option.
236
-
It can be useful for debugging unexpected behavior and For illustrative purposes We will show an example of adding a develop spec that is not yet in the environment, and how to update the local source if you decide to change the version.
237
-
Let's say we plan to extend our environment to develop the ``nekbone`` package.
236
+
Some example cases include:
237
+
238
+
- Updating a develop spec before updating the environment to change a variant or version
239
+
- Adding a develop spec that is not yet in the environment
240
+
- Debugging unexpected behavior
241
+
242
+
For illustrative purposes we will show an example of switching ``scr`` to a debug build via the ``build_type=Debug`` variant.
238
243
239
244
.. literalinclude:: outputs/dev/develop-6.out
240
245
:language: console
241
246
242
-
The ``spack develop`` command only has any effect if the developed package appears in the environment, as a root or dependency.
243
-
Some additional concerns to use the ``spack develop`` command effectively:
247
+
We see that naively updating the develops spec, resulted first in an error and then an undesired version change.
248
+
To preserve the version and get the new variant added we run the following commands:
249
+
250
+
.. literalinclude:: outputs/dev/develop-7.out
251
+
:language: console
252
+
253
+
Some additional concerns to navigate for effective use of the ``spack develop`` command include:
244
254
245
255
* ``spack add <package>`` with the matching version you want to develop is a way to ensure the develop spec is satisfied in the ``spack.yaml`` environments file.
246
256
* If the spec is not already concrete in the environment, you need to provide Spack a spec version so it can supply the correct flags for the package's build system.
0 commit comments