-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add documentation and example for write-module-hook #714
Conversation
Also fix some typos and minor issues
* the ``EasyBlock`` instance used to perform the installation (usually referred to as ``self``) | ||
* the filepath of the module that will be written | ||
* the module text as a string | ||
The return value of this hook (if any) will then be appended to the contents of the module file. |
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.
@boegel You changed this sentence and introduced a mistake: The contents will be written to the module file. NOT appended, just as I wrote initially. The whole return value will be used and written directly, so this is misleading
Or what did you mean by "appended" here?
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.
Oh, and I even checked the code before changing this... Will fix.
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.
For rerference see https://github.com/easybuilders/easybuild-framework/blob/96977045496d8a5106a54727f6522c92863008e8/easybuild/framework/easyblock.py#L3168-L3170 and https://github.com/easybuilders/easybuild-framework/blob/96977045496d8a5106a54727f6522c92863008e8/easybuild/framework/easyblock.py#L3179
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.
Fixed in #715, thanks for double checking and catching this!
Also fix some typos and minor issues