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

Add documentation and example for write-module-hook #714

Merged
merged 3 commits into from
Jun 11, 2021

Conversation

Flamefire
Copy link
Contributor

Also fix some typos and minor issues

Also fix some typos and minor issues
@boegel boegel changed the title Add docu and example for write-module-hook Add documentation and example for write-module-hook Jun 11, 2021
@boegel boegel added this to the next release (4.4.1) milestone Jun 11, 2021
@boegel boegel merged commit c0b38dd into easybuilders:develop Jun 11, 2021
* 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.
Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

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!

@Flamefire Flamefire deleted the add-write-hook-docu branch June 14, 2021 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants