diff options
Diffstat (limited to 'deps/deps.go')
-rw-r--r-- | deps/deps.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go index b70dcb5a0..f6b64c279 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -316,14 +316,16 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er d.Site = cfg.Site - // The resource cache is global so reuse. + // These are common for all sites, so reuse. // TODO(bep) clean up these inits. resourceCache := d.ResourceSpec.ResourceCache + postBuildAssets := d.ResourceSpec.PostBuildAssets d.ResourceSpec, err = resources.NewSpec(d.PathSpec, d.ResourceSpec.FileCaches, d.BuildState, d.Log, d.globalErrHandler, cfg.OutputFormats, cfg.MediaTypes) if err != nil { return nil, err } d.ResourceSpec.ResourceCache = resourceCache + d.ResourceSpec.PostBuildAssets = postBuildAssets d.Cfg = l d.Language = l |