diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-09-03 10:36:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-09-03 18:38:57 +0200 |
commit | 8624b9fe9eb81aeb884d36311fb6f85fed98aa43 (patch) | |
tree | 830fcb271584065cc6577c17808ade64cdb68b88 /resources/resource_transformers | |
parent | 018494f363a32b9e4d3622da6842bc3e59b420b2 (diff) | |
download | hugo-8624b9fe9eb81aeb884d36311fb6f85fed98aa43.tar.gz hugo-8624b9fe9eb81aeb884d36311fb6f85fed98aa43.zip |
Cache processed images by their source path
Fixes #6269
Diffstat (limited to 'resources/resource_transformers')
-rw-r--r-- | resources/resource_transformers/htesting/testhelpers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/resource_transformers/htesting/testhelpers.go b/resources/resource_transformers/htesting/testhelpers.go index eb664ed3a..4dfc9855a 100644 --- a/resources/resource_transformers/htesting/testhelpers.go +++ b/resources/resource_transformers/htesting/testhelpers.go @@ -39,7 +39,7 @@ func NewTestResourceSpec() (*resources.Spec, error) { cfg.Set("imaging", imagingCfg) - fs := hugofs.NewMem(cfg) + fs := hugofs.NewFrom(hugofs.NewBaseFileDecorator(afero.NewMemMapFs()), cfg) s, err := helpers.NewPathSpec(fs, cfg, nil) if err != nil { |