Canonicalize positional argument to spack bootstrap mirror (#31180)

fixes #31139
This commit is contained in:
Massimiliano Culpo 2022-06-21 19:25:01 +02:00 committed by GitHub
parent 77118427b1
commit 649760dc1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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