Skip to content

🐞 Include/exclude from module dependencies not prefixed with subdir to module #8136

Closed

Description

@helderco

When a module is used as a dependency inside the same git repo, the dependency’s include/exclude patterns aren’t prefixed with the path to that module, relative to the repo root (context directory). When the module is called directly, the prefix is added correctly, which means that the patterns from dependencies

For example, suppose the sdk/python/dev module has the following exclude:

{
  "name": "python-sdk-dev",
  "sdk": "python",
  "exclude": [
    ".venv"
  ]
}

If you run the module directly, the final list of excludes when loading the module, include the subdir to the module:

Screenshot 2024-08-09 at 17 02 42

However, the global dev module, which depends on sdk/python/dev, doesn’t have the right final excludes, because the subdir to sdk/python/dev isn’t being prefixed to those patterns:

Screenshot 2024-08-09 at 17 10 15

This can cause a lot of issues, see for example:

\cc @TomChv

Activity

  1. added
    kind/bug
    area/engine
    on Aug 9, 2024
  2. self-assigned this
    on Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/enginekind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions