Skip to content
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

failed evaluation is attempted multiple times #264

Closed
xdelaruelle opened this issue Apr 23, 2019 · 0 comments
Closed

failed evaluation is attempted multiple times #264

xdelaruelle opened this issue Apr 23, 2019 · 0 comments
Assignees
Milestone

Comments

@xdelaruelle
Copy link
Collaborator

Taking the following modulefiles as example:

$ cat /path/to/modulefiles/rea
#%Module
$ cat /path/to/modulefiles/reb
#%Module
$ cat /path/to/modulefiles/red
#%Module
prereq rea reb
if {[module-info mode unload]} {
    break
}

With following situation as starting point (rea and red modules loaded):

$ module load --auto red
Loading red
  Loading requirement: rea
$ module list
Currently Loaded Modulefiles:
 1) rea   2) red  

When switching from rea to reb, an unload attempt of red occurs which fails as this modulefile breaks when it is unloaded. The unload of red is tried twice: once when rea is unloaded and a second time when reb is loaded. Second attempt could be spared.

$ module switch --auto rea reb
Unloading rea
  ERROR: Reload of dependent red failed
$ module list
Currently Loaded Modulefiles:
 1) rea   2) red  
$ module switch --auto --force rea reb
Unloading rea
  WARNING: Reload of dependent red failed

Loading reb
  WARNING: Reload of dependent red failed
$ module list
Currently Loaded Modulefiles:
 1) red   2) reb
@xdelaruelle xdelaruelle added this to the 4.2.4 milestone Apr 23, 2019
@xdelaruelle xdelaruelle self-assigned this Apr 23, 2019
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

No branches or pull requests

1 participant