Skip to content

Commit e50bdb2

Browse files
committed
Add repo configuration
Signed-off-by: tldahlgren <35777542+tldahlgren@users.noreply.github.com>
1 parent 8beebcd commit e50bdb2

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

outputs/packaging/repo-config.out

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$ spack config get repos
2+
repos:
3+
tutorial: /home/spack7/repos/spack_repo/tutorial
4+
builtin:
5+
git: https://github.com/spack/spack-packages.git
6+
branch: releases/v2025.07

tutorial_packaging.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,20 @@ In order to avoid modifying your Spack installation with the package we are crea
4444

4545
Doing this ensures changes we make here do not adversely affect other parts of the tutorial.
4646

47-
Now let's look at the available repositories to us using the `spack repo list` command:
47+
Now let's look at the available repositories using ``spack repo list``:
4848

4949
.. literalinclude:: outputs/packaging/repo-list.out
5050
:language: console
5151

52+
Notice we now have two repositories: ``tutorial`` and ``builtin``.
53+
54+
We can see how they are configured using ``spack config get repos``:
55+
56+
.. literalinclude:: outputs/packaging/repo-config.out
57+
:language: console
58+
59+
Notice the default ``builtin`` repository is checked out at the latest release branch.
60+
5261
You can find out more about repositories at `Package Repositories <https://spack.readthedocs.io/en/latest/repositories.html>`_ and the command at `spack repo <https://spack.readthedocs.io/en/latest/repositories.html#cmd-spack-repo>`_.
5362

5463

0 commit comments

Comments
 (0)