Skip to content

Commit

Permalink
use git clone/checkout (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli authored Nov 21, 2024
1 parent b82b452 commit 7c1372e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/tutorial-spack.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ This guide explains a _developer workflow_ allowing to either build your own pac
!!! tip
To avoid compatibility issues, try to match the version of your local [Spack] instance with the version of [Spack] of the uenv. You can use the following command to clone the same [Spack] version used by the uenv:
```bash
git clone \
-b $(jq -r .spack.commit /user-environment/meta/configure.json) \
$(jq -r .spack.repo /user-environment/meta/configure.json) $SCRATCH/spack
git clone --filter=tree:0 $(jq -r .spack.repo /user-environment/meta/configure.json)
git -C spack checkout $(jq -r .spack.commit /user-environment/meta/configure.json)
```

!!! warning
Expand Down

0 comments on commit 7c1372e

Please sign in to comment.