diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-23 09:16:42 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-23 21:09:00 +0100 |
commit | f9b4eb4f3968d32f45e0168c854e6b0c7f3a90b0 (patch) | |
tree | bca87a80e39fe35b57fcb36b75fa34e6a1da677a /resource | |
parent | e82b2dc8c1628f2da33e5fb0bae1b03e0594ad2c (diff) |
Handle themes in the new file cache (for images, assets)
In the newly consolidated file cache implementation, we forgot that we also look in the theme(s) for assets (SCSS transformations etc.), which is not good for Netlify and the demo sites.
Fixes #5460
Diffstat (limited to 'resource')
-rw-r--r-- | resource/testhelpers_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resource/testhelpers_test.go b/resource/testhelpers_test.go index 05a02a6fc..55833bafa 100644 --- a/resource/testhelpers_test.go +++ b/resource/testhelpers_test.go @@ -52,7 +52,7 @@ func newTestResourceSpecForBaseURL(assert *require.Assertions, baseURL string) * s, err := helpers.NewPathSpec(fs, cfg) assert.NoError(err) - filecaches, err := filecache.NewCachesFromPaths(s.Paths) + filecaches, err := filecache.NewCaches(s) assert.NoError(err) spec, err := NewSpec(s, filecaches, nil, output.DefaultFormats, media.DefaultTypes) @@ -88,7 +88,7 @@ func newTestResourceOsFs(assert *require.Assertions) *Spec { s, err := helpers.NewPathSpec(fs, cfg) assert.NoError(err) - filecaches, err := filecache.NewCachesFromPaths(s.Paths) + filecaches, err := filecache.NewCaches(s) assert.NoError(err) spec, err := NewSpec(s, filecaches, nil, output.DefaultFormats, media.DefaultTypes) |