diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-09 13:52:36 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-16 13:17:53 +0100 |
commit | 639073e4fee8fd4235c1002b076e110fad4c82f2 (patch) | |
tree | 55f4c392bc4f156f8605993d3d416bd5b105cc40 /hugolib/content_map_page.go | |
parent | 21d9057dbfe64f668d5fc6a7f458e0984fbf7e56 (diff) | |
download | hugo-639073e4fee8fd4235c1002b076e110fad4c82f2.tar.gz hugo-639073e4fee8fd4235c1002b076e110fad4c82f2.zip |
Fix rebuild with resources.Concat
Fixes #12017
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r-- | hugolib/content_map_page.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index 6273870b7..576ee5e08 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -605,12 +605,15 @@ func (n contentNodeIs) GetIdentity() identity.Identity { return n[0].GetIdentity() } -func (n contentNodeIs) ForEeachIdentity(f func(identity.Identity) bool) { +func (n contentNodeIs) ForEeachIdentity(f func(identity.Identity) bool) bool { for _, nn := range n { if nn != nil { - nn.ForEeachIdentity(f) + if nn.ForEeachIdentity(f) { + return true + } } } + return false } func (n contentNodeIs) resetBuildState() { @@ -1151,7 +1154,7 @@ func (h *HugoSites) resolveAndResetDependententPageOutputs(ctx context.Context, // First check the top level dependency manager. for _, id := range changes { checkedCounter.Add(1) - if r := depsFinder.Contains(id, p.dependencyManager, 100); r > identity.FinderFoundOneOfManyRepetition { + if r := depsFinder.Contains(id, p.dependencyManager, 2); r > identity.FinderFoundOneOfManyRepetition { for _, po := range p.pageOutputs { resetPo(po, r) } @@ -1167,7 +1170,7 @@ func (h *HugoSites) resolveAndResetDependententPageOutputs(ctx context.Context, } for _, id := range changes { checkedCounter.Add(1) - if r := depsFinder.Contains(id, po.dependencyManagerOutput, 2); r > identity.FinderFoundOneOfManyRepetition { + if r := depsFinder.Contains(id, po.dependencyManagerOutput, 50); r > identity.FinderFoundOneOfManyRepetition { resetPo(po, r) continue OUTPUTS } |