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

Ignore request for external module (meta)data when no modules tool is active #4308

Merged
merged 1 commit into from Aug 11, 2023

Conversation

Flamefire
Copy link
Contributor

E.g. for --fetch the modules tool is explicitly set to None/NoModulesTool to allow running on e.g. laptops to fetch sources. This however fails for external module dependencies in which it tries to resolve them using the modules tool which fails with NotImplementedError.

Simply ignore the request in that case as-if the module metadata wasn't found.

Fixes #4298

Alternative to and hence closes #4299

I also found a test case which reproduces this: Running --fetch with toy-0.0-deps.eb

… active

E.g. for `--fetch` the modules tool is explicitly set to
`None`/`NoModulesTool` to allow running on e.g. laptops to fetch sources.
This however fails for external module dependencies in which it tries to
resolve them using the modules tool which fails with `NotImplementedError`.

Simply ignore the request in that case as-if the module metadata wasn't found.

Fixes easybuilders#4298
Copy link
Member

@ocaisa ocaisa left a comment

Choose a reason for hiding this comment

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

@boegel This doesn't look controversial and includes a test, but I leave it to you to hit merge giving the previous discussions you've had on the topic

@boegel boegel added the bug fix label Aug 11, 2023
@boegel boegel added this to the next release (4.8.1?) milestone Aug 11, 2023
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 9294c6c into easybuilders:develop Aug 11, 2023
35 checks passed
@Flamefire Flamefire deleted the fix-fetch-with-ext-mods branch August 11, 2023 10:39
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.

NotImplementedError on --fetch with external_module used in easyconfig
3 participants