mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Fix Processed images count regression for multiple languages
Fixes #11002
This commit is contained in:
5
deps/deps.go
vendored
5
deps/deps.go
vendored
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user