Skip to content

ly_ctx_set_searchdir() behavior changed: current working directory now always searched recursively #2577

Description

@rodonile

Version

6.4.3 (commit 70f8e6a1d, devel branch)

Description

While testing with the newest devel branch, some of my use cases broke due to a change in behavior of ly_ctx_set_searchdir().

The documentation states that the current working directory is searched automatically but not recursively, while explicitly registered search directories are searched recursively. In practice, the current working directory's subdirectories now get recursively searched too, as soon as any explicit search directory is also registered.

The practical consequence is that a module lookup with no revision specified can pick up an unrelated, same-named module file located anywhere under the current working directory, instead of the one in the directory that was actually registered as a search path.

Is this an intended change, or a regression? For now I can mitigate this with the LY_CTX_DISABLE_SEARCHDIR_CWD flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions