Skip to content

first look for patch in alt_location when it is specified#4093

Merged
boegel merged 5 commits intoeasybuilders:developfrom
akesandgren:fix-obtain_files-for-patch-with-alt_location
Oct 17, 2022
Merged

first look for patch in alt_location when it is specified#4093
boegel merged 5 commits intoeasybuilders:developfrom
akesandgren:fix-obtain_files-for-patch-with-alt_location

Conversation

@akesandgren
Copy link
Copy Markdown
Contributor

When alt_location is specified we should not look in the directory of the easyconfig for patches before alt_location.

When alt_location is specified we should not look in the directory of
the easyconfig for patches before alt_location.
@boegel
Copy link
Copy Markdown
Member

boegel commented Oct 12, 2022

This extends the impact of alt_location a bit, but I guess it makes sense: if alt_location is specified, it should be honored.

We should add some logging though, to make it clear that the directory where the easyconfig file is being excluded because alt_location is specified, to make this a bit more explicit?

@akesandgren
Copy link
Copy Markdown
Contributor Author

@boegel something like that then?

…in which easyconfig file is located is being consider to locate file
…file is located is ignored when alt_location is used
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

And we should cover this in the test for obtain_file too.

See akesandgren#20

Comment thread easybuild/framework/easyblock.py
Comment thread easybuild/framework/easyblock.py Outdated
…t_location

always log a message in obtain_file to indicate whether or directory in which easyconfig file is located is being consider to locate file + enhance test_obtain_file
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit e276c51 into easybuilders:develop Oct 17, 2022
@akesandgren akesandgren deleted the fix-obtain_files-for-patch-with-alt_location branch October 17, 2022 13:16
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