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

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

Conversation

akesandgren
Copy link
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
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
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
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

easybuild/framework/easyblock.py Show resolved Hide resolved
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
…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
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