Open
Description
Steps to reproduce
- Create a layout that pulls in some other items with
@items[item_identifier_string]
or@items.find_all(some_item_glob)
. - Use that layout in two or more items.
- 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.