这是indexloc提供的服务,不要输入任何密码
Skip to content

Possibility to have Renovate parse depName from the directory #39203

@RahulGautamSingh

Description

@RahulGautamSingh

Discussed in #38638

Originally posted by MrLemur October 15, 2025

How are you running Renovate?

Self-hosted Renovate

If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.

GitHub

Please tell us more about your question or problem

I have a repo structure like so:

- <folder>
  - <sub folder>
    - service.env

service.env only contains a version number. What I am trying to achieve is getting the depName from the parent directory where service.env lives. I'm using a custom regex manager to get the file, but I have been unable to use packageFile or packageFileDir within the depNameTemplate field - it always shows as undefined. I am even trying something like "packageNameTemplate": "{{ lookup (split {{ packageFileDir}} '/') 1 }}"

Is what I am looking to do even possible? Many thanks.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    manager:regexpriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of others

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions