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

fix build options that should have empty list as default value #4108

Merged
merged 4 commits into from
Nov 23, 2022

Conversation

boegel
Copy link
Member

@boegel boegel commented Oct 22, 2022

For build options like from_pr we assume throughout the code that they have an empty list as default value, see for example:

from_prs = [int(x) for x in build_option('from_pr')]

There are situations where that's currently not the case though, primarily when EasyBuild is being used as a library (cfr. this tutorial section).
That's fixed by the changes being made here, by implementing special treatment for build options that should have a unique empty list as default value.

@boegel boegel added the bug fix label Oct 22, 2022
@boegel boegel added this to the next release (4.6.3?) milestone Oct 22, 2022
@boegel boegel requested review from branfosj and removed request for bartoldeman November 23, 2022 07:39
Copy link
Member

@branfosj branfosj left a comment

Choose a reason for hiding this comment

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

Can we get the lists in alphabetical order while we are doing this please?

See boegel#54

branfosj
branfosj previously approved these changes Nov 23, 2022
@branfosj branfosj dismissed their stale review November 23, 2022 10:49

conflict ...

@branfosj
Copy link
Member

I fixed the conflict caused by #3749 and the reordering of the lists.

@branfosj branfosj merged commit 41101fb into easybuilders:develop Nov 23, 2022
@boegel boegel deleted the build_option_empty_list branch November 23, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants