Skip to content
Snippets Groups Projects
Commit ddddaa44 authored by Jithu Murugan's avatar Jithu Murugan
Browse files

- Corrected the docstring for the setup_spack_env function along with the return type.

parent ee9cc871
No related branches found
No related tags found
1 merge request!4feat(spack_operation): implement setup_spack_env functionality
Pipeline #59519 failed with stages
in 45 minutes and 14 seconds
......@@ -26,11 +26,15 @@ class SpackOperationUseCache(SpackOperation):
os.environ.get('BUILDCACHE_OCI_PASSWORD'),
cache_version=cache_version_build)
def setup_spack_env(self):
"""Sets up the Spack environment using cached data.
def setup_spack_env(self) -> None:
"""Set up the spack environment for using the cache.
Downloads the build cache, trusts the cached public key (if available),
and adds the build cache as a local mirror.
Downloads the build cache, adds the public key to trusted keys,
and adds the build cache mirror.
Raises:
ValueError: If there is an issue with the build cache setup.
NoSpackEnvironmentException: If the spack environment is not set up.
"""
super().setup_spack_env()
try:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment