From 649760dc1a99bce084263dfd2e665fea16b1f275 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 21 Jun 2022 19:25:01 +0200 Subject: Canonicalize positional argument to spack bootstrap mirror (#31180) fixes #31139 --- lib/spack/spack/cmd/bootstrap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/bootstrap.py b/lib/spack/spack/cmd/bootstrap.py index e1bb4b034f..c4048b02fa 100644 --- a/lib/spack/spack/cmd/bootstrap.py +++ b/lib/spack/spack/cmd/bootstrap.py @@ -379,7 +379,9 @@ def _remove(args): def _mirror(args): - mirror_dir = os.path.join(args.root_dir, LOCAL_MIRROR_DIR) + mirror_dir = spack.util.path.canonicalize_path( + os.path.join(args.root_dir, LOCAL_MIRROR_DIR) + ) # TODO: Here we are adding gnuconfig manually, but this can be fixed # TODO: as soon as we have an option to add to a mirror all the possible -- cgit v1.2.3-60-g2f50