spack env activate: respect --without-view when --temp (#50438)

This commit is contained in:
G-Ragghianti 2025-05-14 03:58:38 -04:00 committed by GitHub
parent 00d65b75a1
commit abcef565a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,7 +331,8 @@ def env_activate(args):
env = create_temp_env_directory()
env_path = os.path.abspath(env)
short_name = os.path.basename(env_path)
ev.create_in_dir(env).write(regenerate=False)
view = not args.without_view
ev.create_in_dir(env, with_view=view).write(regenerate=False)
_tty_info(f"Created and activated temporary environment in {env_path}")
# Managed environment