Skip to content

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

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix-fetch-with-ext-mods
Aug 11, 2023
Merged

Ignore request for external module (meta)data when no modules tool is active#4308
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix-fetch-with-ext-mods

Conversation

@Flamefire
Copy link
Copy Markdown
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
Copy Markdown
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
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 9294c6c into easybuilders:develop Aug 11, 2023
@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