diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-14 11:53:45 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-14 23:14:51 +0100 |
commit | 33502667fbacf57167ede66df8f13e308a4a9aec (patch) | |
tree | f6fdd8e6c07b7f7bbf9d2b6d95d2f4b41511e402 /tpl | |
parent | d3489eba5dfc0ecdc032016d9db0746213dd5f0e (diff) |
cache/filecache: Add a filecache root dir
This is just a safe guard to make sure we don't evict/remove files that do not belong to the cache.
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/data/resources_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go index 54eb123ee..b143bb1a3 100644 --- a/tpl/data/resources_test.go +++ b/tpl/data/resources_test.go @@ -180,6 +180,7 @@ func TestScpGetRemoteParallel(t *testing.T) { } func newDeps(cfg config.Provider) *deps.Deps { + cfg.Set("resourceDir", "resources") l := langs.NewLanguage("en", cfg) l.Set("i18nDir", "i18n") cs, err := helpers.NewContentSpec(l) |