refactor: reduce use of pointers in particular, Source can no longer be nil. Instantiate a Source with an Importer of All instead
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/fetcher/main.go → internal/fetcher/main.go
@@ -30,7 +30,7 @@ FetchIfNeeded(context.Context, *index.SourceMeta) (*FetchedFiles, error) } func New( - source *config.Source, + source config.Source, opts *Options, ) (fetcher Fetcher, err error) { target := source.JoinPath("")@@ -61,7 +61,7 @@ return } func Open( - source *config.Source, + source config.Source, opts *Options, ) (*FetchedFiles, error) { root := opts.Root