From 343cd04a5425a910d8e2c700411929b4c5d1e368 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Sat, 12 Nov 2022 11:42:59 -0800 Subject: 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 --- lib/spack/spack/cmd/tutorial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3-70-g09d2