Skip to content

nanoc show-data doesn’t show dependencies from @items #1453

Open
@da2x

Description

@da2x

Steps to reproduce

  1. Create a layout that pulls in some other items with @items[item_identifier_string] or @items.find_all(some_item_glob).
  2. Use that layout in two or more items.
  3. Run nanoc show-data

Expected behavior

show-data should list all the dependencies for all of the items.

Actual behavior

show-data lists the dependencies for one of the items using that template. The other items are listed as depending on (nothing).

Details

Unsure if this is related or not, but the values given to @items originates from an @item property. E.g. @items.find_all("{#{@item[:array_of_item_identifiers].join(',')}}") or @items[@item[:thumbnail_item_identifier]].

Despite not showing in show-data, the dependency tracking works most of the time. Sometimes need to run compile a second time for an item using such a layout will recompile.

Update 1: The recompilation issue seems to only affect item properties from items with meta files.

Update 2: Recompilation issue separated into separate issue #1454.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions