Skip to content

improve error reporting when available_software.py script is run in incorrect environment #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

boegel
Copy link
Contributor

@boegel boegel commented Jun 4, 2024

With these changes, the script produces better error messages when it's being run when:

  • EESSI is not available (/cvmfs/software.eessi.io/... does not exist);
  • Lmod is not properly set up ($LMOD_CMD does not specify path to Lmod binary);

When $MODULEPATH is empty, the script also won't crash anymore now.

Copy link
Collaborator

@laraPPr laraPPr left a comment

Choose a reason for hiding this comment

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

lgtm

@laraPPr laraPPr merged commit d9ea651 into EESSI:main Jun 4, 2024
1 check passed
@boegel boegel deleted the available_software_more_robust branch June 4, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants