diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-05-28 11:35:00 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-05-28 12:55:44 +0200 |
commit | fd099331ec82c21e1fd7ee1cdb9630b820714643 (patch) | |
tree | b4280f2b8dac094f6b0d6c9099df571b1241b0e6 /deps | |
parent | 43f1282e734f5a27f99ff6efb29190a234b3447a (diff) | |
download | hugo-fd099331ec82c21e1fd7ee1cdb9630b820714643.tar.gz hugo-fd099331ec82c21e1fd7ee1cdb9630b820714643.zip |
Fix Processed images count regression for multiple languages
Fixes #11002
Diffstat (limited to 'deps')
-rw-r--r-- | deps/deps.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go index 0eeb4248b..39462de96 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -189,10 +189,13 @@ func (d *Deps) Init() error { } var common *resources.SpecCommon + var imageCache *resources.ImageCache if d.ResourceSpec != nil { common = d.ResourceSpec.SpecCommon + imageCache = d.ResourceSpec.ImageCache } - resourceSpec, err := resources.NewSpec(d.PathSpec, common, d.BuildState, d.Log, d, d.ExecHelper) + + resourceSpec, err := resources.NewSpec(d.PathSpec, common, imageCache, d.BuildState, d.Log, d, d.ExecHelper) if err != nil { return fmt.Errorf("failed to create resource spec: %w", err) } |