diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2025-02-22 21:10:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 02:10:31 +0000 |
| commit | 1ebbc31fb242f4dd85a8db188f77d838b61d6db8 (patch) | |
| tree | ec6b67033a1a51497752683c68cca2ac6a8a8532 /render.go | |
| parent | 3a4825687419639b8aa9b8c6158cdf3d20f22932 (diff) | |
fix(lint): Address new lint warnings (#2329)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'render.go')
| -rw-r--r-- | render.go | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -9,12 +9,10 @@ import ( "path" "slices" "strings" - "sync" "text/template" "time" "github.com/hairyhenderson/go-fsimpl" - "github.com/hairyhenderson/go-fsimpl/autofs" "github.com/hairyhenderson/gomplate/v4/internal/datafs" "github.com/hairyhenderson/gomplate/v4/internal/funcs" ) @@ -372,20 +370,4 @@ func parseNestedTemplate(_ context.Context, fsys fs.FS, alias, fname string, tmp } // DefaultFSProvider is the default filesystem provider used by gomplate -var DefaultFSProvider = sync.OnceValue( - func() fsimpl.FSProvider { - fsp := fsimpl.NewMux() - - // start with all go-fsimpl filesystems - fsp.Add(autofs.FS) - - // override go-fsimpl's filefs with wdfs to handle working directories - fsp.Add(datafs.WdFS) - - // gomplate-only filesystem - fsp.Add(datafs.EnvFS) - fsp.Add(datafs.StdinFS) - fsp.Add(datafs.MergeFS) - - return fsp - })() +var DefaultFSProvider = datafs.DefaultProvider |
