diff options
Diffstat (limited to 'model/new.go')
| -rw-r--r-- | model/new.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model/new.go b/model/new.go index e83c314..94e19a8 100644 --- a/model/new.go +++ b/model/new.go @@ -21,8 +21,9 @@ func NewState(rootFs fs.FS, locations []string, indexers []Indexer, runners []Ru wg.Go(func() { _, dirName := filepath.Split(strings.TrimSuffix(loc, "/")) src := &Source{ - Path: loc, - Identity: identity.New(dirName), + Path: loc, + Identity: identity.New(dirName), + Whitelists: make(map[string][]string), } sources[i] = src loc = strings.TrimSuffix(loc, "/") |
