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_binary_cache.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,9 +116,9 @@ look very similar to a container image --- we will get to that in a bit.
116
116
You can change the visibility to ``public`` by going to GitHub Packages from your GitHub account, selecting the ``buildcache`` package, go to ``package settings``, and change the visibility to ``public`` in the ``Danger Zone`` section.
117
117
This page can also be directly accessed by going to
Copy file name to clipboardExpand all lines: tutorial_developer_workflows.rst
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,22 +285,22 @@ This command is particularly useful in developer environments—it allows develo
285
285
The additional features of the install command are unnecessary when tightly iterating between building and testing a particular package.
286
286
For example, the workflow modifying ``scr`` that we just went through can be simplified to:
287
287
288
-
.. code-block:: console
289
-
290
-
$ spack build-env scr -- bash
291
-
# Shell wrappers didn't propagate to the subshell
292
-
$ source $SPACK_ROOT/share/spack/setup-env.sh
293
-
# Lets look at navigation features
294
-
$ spack cd --help
295
-
$ spack cd -c scr
296
-
$ touch src/scr_copy.c
297
-
$ spack cd -b scr
298
-
# Lets look at whats here
299
-
$ ls
300
-
# Build and run tests
301
-
$ make -j2
302
-
$ make test
303
-
$ exit
288
+
.. code-block:: console
289
+
290
+
$ spack build-env scr -- bash
291
+
# Shell wrappers didn't propagate to the subshell
292
+
$ source $SPACK_ROOT/share/spack/setup-env.sh
293
+
# Lets look at navigation features
294
+
$ spack cd --help
295
+
$ spack cd -c scr
296
+
$ touch src/scr_copy.c
297
+
$ spack cd -b scr
298
+
# Lets look at whats here
299
+
$ ls
300
+
# Build and run tests
301
+
$ make -j2
302
+
$ make test
303
+
$ exit
304
304
305
305
Working with the build environment and along with Spack navigation features provides a nice way to iterate quickly and navigate through the hash-heavy Spack directory structures.
306
306
@@ -314,13 +314,13 @@ Developers can achieve builds of both cases from a single ``spack install`` as l
314
314
315
315
.. code-block:: console
316
316
317
-
# First we have to allow repeat specs in the environment
318
-
$ spack config add concretizer:unify:false
319
-
# Next we need to specify the specs we want ('==' propagates the variant to deps)
320
-
$ spack change macsio build_type==Release
321
-
$ spack add macsio+scr build_type==Debug
322
-
# Inspect the graph for multiple dev_path=
323
-
$ spack concretize -f
317
+
# First we have to allow repeat specs in the environment
318
+
$ spack config add concretizer:unify:false
319
+
# Next we need to specify the specs we want ('==' propagates the variant to deps)
320
+
$ spack change macsio build_type==Release
321
+
$ spack add macsio+scr build_type==Debug
322
+
# Inspect the graph for multiple dev_path=
323
+
$ spack concretize -f
324
324
325
325
While we won't build out this example it illustrates how the ``dev_path`` for ``build_type=Release`` and ``build_type=Debug`` points to the same source code.
0 commit comments