summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2022-11-12 11:42:59 -0800
committerGitHub <noreply@github.com>2022-11-12 11:42:59 -0800
commit343cd04a5425a910d8e2c700411929b4c5d1e368 (patch)
tree9d7a38ff1300c873e714ce1e055b5986306b40e5
parented45385b7b01ca6dcac95d0e9e487433315c88a1 (diff)
downloadspack-343cd04a5425a910d8e2c700411929b4c5d1e368.tar.gz
spack-343cd04a5425a910d8e2c700411929b4c5d1e368.tar.bz2
spack-343cd04a5425a910d8e2c700411929b4c5d1e368.tar.xz
spack-343cd04a5425a910d8e2c700411929b4c5d1e368.zip
use spack.version_info as source of version truth for spack tutorial command (#33860)
* Use spack.spack_version_info as source of truth Co-authored-by: Todd Gamblin <gamblin2@llnl.gov>
-rw-r--r--lib/spack/spack/cmd/tutorial.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/tutorial.py b/lib/spack/spack/cmd/tutorial.py
index 33098ac5ca..cdf0690ec5 100644
--- a/lib/spack/spack/cmd/tutorial.py
+++ b/lib/spack/spack/cmd/tutorial.py
@@ -11,6 +11,7 @@ import shutil
import llnl.util.tty as tty
from llnl.util.filesystem import working_dir
+import spack
import spack.cmd.common.arguments as arguments
import spack.config
import spack.paths
@@ -24,7 +25,7 @@ level = "long"
# tutorial configuration parameters
-tutorial_branch = "releases/v0.18"
+tutorial_branch = "releases/v%s" % ".".join(str(v) for v in spack.spack_version_info[:2])
tutorial_mirror = "file:///mirror"
tutorial_key = os.path.join(spack.paths.share_path, "keys", "tutorial.pub")