Skip to content

Can't Extend A Remote Config That Extends A Local Config #2371

Open
@Kurt-von-Laven

Description

@Kurt-von-Laven

Describe the bug
When you extend a config in a different repository that extends a config within said repository, the keys from the parent config are properly incorporated, but the grandparent config is completely ignored.

To Reproduce
Steps to reproduce the behavior:

  1. Extend a config such as ours, which extends a local config.
  2. Run MegaLinter on your project.
  3. Observe that none of the settings in the base config are respected.

Expected behavior
I expected the inheritance to apply recursively.

Additional context
There were recent fixes for extending local files and extending recursively, but the case where both features are combined isn't handled properly. Renovate has sophisticated support for config inheritance, which may be a helpful reference. One solution might be to specify the base (e.g., repo) URL in one config key and the path relative to the base URL in another.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnostaleThis issue or pull request is not stale, keep it open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions