Skip to content

Commit 1348447

Browse files
committed
rename local repository directory
Signed-off-by: tldahlgren <35777542+tldahlgren@users.noreply.github.com>
1 parent 56d9c2a commit 1348447

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

outputs/packaging/cleanup.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ spack uninstall -ay tutorial-mpileaks
22
==> Successfully uninstalled tutorial-mpileaks@1.0%gcc@11.4.0 build_system=autotools stackstart=0 arch=linux-ubuntu22.04-x86_64_v3/vzdlgth
33
$ spack repo remove tutorial
4-
==> Removed repository /home/spack/spack/var/spack/repos/tutorial with namespace 'tutorial'.
5-
$ rm -rf repos
4+
==> Removed repository /home/spack/mypkgs/spack_repo/tutorial with namespace 'tutorial'.
5+
$ rm -rf mypkgs

outputs/packaging/create.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ $ spack create --name tutorial-mpileaks https://github.com/LLNL/mpileaks/archive
44
[100%] 339.70 KB @ 4.2 MB/s
55
==> This package looks like it uses the autoreconf build system
66
==> Created template for tutorial-mpileaks package
7-
==> Created package file: /home/spack/repos/spack_repo/tutorial/packages/tutorial_mpileaks/package.py
7+
==> Created package file: /home/spack/mypkgs/spack_repo/tutorial/packages/tutorial_mpileaks/package.py

outputs/packaging/repo-add.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
$ mkdir repos
2-
$ spack repo create repos tutorial
1+
$ mkdir mypkgs
2+
$ spack repo create mypkgs tutorial
33
==> Created repo with namespace 'tutorial'.
44
==> To register it with spack, run this command:
5-
spack repo add /home/spack/repos/spack_repo/tutorial
6-
$ spack repo add /home/spack/repos/spack_repo/tutorial
5+
spack repo add /home/spack/mypkgs/spack_repo/tutorial
6+
$ spack repo add /home/spack/mypkgs/spack_repo/tutorial
77
==> Added repo to config with name 'tutorial'.

outputs/packaging/repo-config.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ spack config get repos
22
repos:
3-
tutorial: /home/spack/repos/spack_repo/tutorial
3+
tutorial: /home/spack/mypkgs/spack_repo/tutorial
44
builtin:
55
tag: v2025.07.0
66
git: https://github.com/spack/spack-packages.git

outputs/packaging/repo-list.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
$ spack repo list
2-
[+] tutorial v2.2 /home/spack/repos/spack_repo/tutorial
2+
[+] tutorial v2.2 /home/spack/mypkgs/spack_repo/tutorial
33
[+] builtin v2.2 /home/spack/.spack/package_repos/fncqgg4/repos/spack_repo/builtin

tutorial_packaging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Spack will look at the contents of the tarball and generate a package when we ru
8888

8989
You should now be in your text editor of choice, with the ``package.py`` file open for editing.
9090

91-
Your ``package.py`` file should reside in the ``tutorial-mpileaks`` subdirectory of your ``tutorial`` repository's ``packages`` directory, i.e., ``/home/spack/repos/spack_repo/tutorial/packages/tutorial_mpileaks/package.py``.
91+
Your ``package.py`` file should reside in the ``tutorial-mpileaks`` subdirectory of your ``tutorial`` repository's ``packages`` directory, i.e., ``/home/spack/mypkgs/spack_repo/tutorial/packages/tutorial_mpileaks/package.py``.
9292

9393
Take a moment to look over the file.
9494

0 commit comments

Comments
 (0)