Skip to content

[bug] Templated files of imported folder incorrectly handled on update #479

Description

@shardrunner

Dotdrop version (and git commit if run from source): v1.16.2
Using dotdrop: via mise and uv tool install

Describe the bug

For imported directories with templates in subfiles, dotdrop update doesn't honor the templates like for imported files and replaces the dotpath subfile with the resolved installed file.
Also no warning like <FILE> uses template, update manually is shown.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Import a folder to dotdrop|
  2. Create a subfile with a template:
{%@@ if profile == "p1" @@%}
hello p1
{%@@ else @@%}
hello other
  1. dotdrop install
  2. dotdrop update
  3. subfile in dothpath is replaced with resolved file

Expected behavior

See no changes in the dotpath and a message <FILE> uses template, update manually

If you need any more information, I'm happy to help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions