Allow use of custom delimiter for paths in module generator#4687
Merged
lexming merged 16 commits intoeasybuilders:5.0.xfrom Nov 13, 2024
Merged
Allow use of custom delimiter for paths in module generator#4687lexming merged 16 commits intoeasybuilders:5.0.xfrom
lexming merged 16 commits intoeasybuilders:5.0.xfrom
Conversation
Member
|
personally, I'd be in favour of the more explicit: |
Contributor
Author
|
Having looked at the code, we have allowed tuples to be used instead of lists here, so might be best to opt for the dict for that reason alone. I added support for that now be rewriting the necessary parts in modextra. Completely untested so far, I ran out of time. |
Merged
1 task
Member
|
Contributor
Author
|
had a 2 day meeting that got in the way of finishing this. I hate regexes. The generated file should be OK i think. Lets see if i got it right now |
lexming
requested changes
Nov 6, 2024
Contributor
lexming
left a comment
There was a problem hiding this comment.
Looks good, I only have some comments to simplify the code.
Co-authored-by: Alex Domingo <alex.domingo.toro@vub.be>
lexming
requested changes
Nov 13, 2024
Contributor
lexming
left a comment
There was a problem hiding this comment.
LGTM but needs a minor fix
Contributor
|
Merging, thanks @Micket ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the straight forward option that we definitely should expose.
It would allow any easyblock to use this at least, though in practice, we should also enable some way for easyconfigs to chose this when specifying modextrapaths.
I left that out for this initial PR, since we need to introduce some new syntax. Maybe good to mark that for 5.0.x.
Various ideas have been thrown out:
That's about all the options I can think of. I would be against doing
since it could allow for different separators to be used for the same variable, which doesn't make any sense.
Needs tests.