Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
easyconfigs:
- cowsay-3.04.eb:
options:
from-commit: 2b8a316e7e61cb69597ba119528a714e9495edac
4 changes: 4 additions & 0 deletions load_easybuild_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,8 @@ else
fatal_error "EasyBuild not working?!"
fi

# EESSI-extend checks for the EB version being used.
# If EESSI-extend is already loaded, we need to reload it in order to reevaluate the checks.
module is-loaded EESSI-extend && module update
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't control the order in which modules are reloaded, so may not fix anything.

I would unload and then load EESSI-extend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should, as we have already switched the EB version at this point, and then it will simply reload both that EB version and EESSI-extend (order doesn't matter). But maybe it's cleaner anyway to only reload EESSI-extend, so I'll change it.

Copy link
Contributor Author

@bedroge bedroge Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just doing a module load EESSI-extend again (if it's loaded) should work:

$ source /cvmfs/software.eessi.io/versions/2023.06/init/bash
$ ml EESSI-extend

{EESSI 2023.06} $ echo $EASYBUILD_CUDA_SANITY_CHECK_ERROR_ON_FAILED_CHECKS 
1
{EESSI 2023.06} $ ml EasyBuild/4.9.4

The following have been reloaded with a version change:
  1) EasyBuild/5.1.1 => EasyBuild/4.9.4

{EESSI 2023.06} $ echo $EASYBUILD_CUDA_SANITY_CHECK_ERROR_ON_FAILED_CHECKS 
1
{EESSI 2023.06} $ ml EESSI-extend
{EESSI 2023.06} $ echo $EASYBUILD_CUDA_SANITY_CHECK_ERROR_ON_FAILED_CHECKS 


unset EB_VERSION