diff --git a/regolith/filter_remote.go b/regolith/filter_remote.go index b77870c2..0aff30be 100644 --- a/regolith/filter_remote.go +++ b/regolith/filter_remote.go @@ -72,7 +72,8 @@ func (f *RemoteFilter) Run(absoluteLocation string) error { path := UrlToPath(f.Url) absolutePath, _ := filepath.Abs(path) - filterCollection, err := FilterCollectionFromFilterJson(path) + filterCollection, err := FilterCollectionFromFilterJson( + filepath.Join(path, "filter.json")) if err != nil { return err } diff --git a/regolith/profile.go b/regolith/profile.go index a1a89c6b..e9cd12c7 100644 --- a/regolith/profile.go +++ b/regolith/profile.go @@ -135,7 +135,7 @@ func RunProfile(profileName string) error { // FilterCollectionFromFilterJson returns a collection of filters from a // "filter.json" file of a remote filter. func FilterCollectionFromFilterJson(path string) (*FilterCollection, error) { - result := &FilterCollection{} + result := &FilterCollection{Filters: []FilterRunner{}} file, err := ioutil.ReadFile(path) if err != nil {