-
Notifications
You must be signed in to change notification settings - Fork 119
follow Lmod rules for path updates #598
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
base: main
Are you sure you want to change the base?
Changes from all commits
15731e6
041b33a
9f5864b
cf424aa
37ed41b
76b8dea
8b0e5d1
101ed8a
6d8e491
7bf3a19
ddc1d4a
5964ceb
e48dea7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3148,7 +3148,10 @@ proc cmdModuleSpider {show_oneperline show_mtime show_filter search_filter\ | |
| $search_match $modpath_list {*}$args | ||
| } | ||
|
|
||
| # ;;; Local Variables: *** | ||
| # ;;; mode:tcl *** | ||
| # ;;; End: *** | ||
| # ;;; Local Variables: | ||
| # ;;; Mode: tcl-mode | ||
| # ;;; tcl-indent-level: 3 | ||
| # ;;; tcl-continued-indent-level: 3 | ||
| # ;;; indent-tabs-mode: nil | ||
| # ;;; End: | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Emacs is not happy with the trailing
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that |
||
| # vim:set tabstop=3 shiftwidth=3 expandtab autoindent: | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still a bit confused/unsure about the reference counter
countarr($dir). Ifpath_entry_reorderis true, are there cases wherecountarr($dir)is not equal to 1? If it is always 1, the current solution might be the best in terms of readability.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be greater than one (for instance if two loaded modules add the same path entry)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but if
path_entry_reorderis true, all occurrences of$dirare removed and exactly one is added again. Looks like I still don't understand the code. :( Maybe an example would help.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
countarris the reference counter of each entry (how many loaded modules set this entry). It helps when unloading a module to determine if the path entry should be kept (if it is used by other loaded modules) or not.reference counter should behave the same whether
path_entry_reorderis set or not. These 2 concepts are not linked.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not hesitate to tell me if it is still not clear.