From 8ab9adf719090e213bd91b2747986ba6ef94576d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 9 May 2024 20:10:23 +0200 Subject: fix: pointer type mismatch --- internal/importer/ingest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/importer/ingest.go') diff --git a/internal/importer/ingest.go b/internal/importer/ingest.go index 3d6854d..0044d67 100644 --- a/internal/importer/ingest.go +++ b/internal/importer/ingest.go @@ -106,14 +106,14 @@ type OptionIngester struct { ms *mapstructure.Decoder optJSON nixOptionJSON infile *os.File - source Source + source *Source } type Ingester[T options.NixOption] interface { Process() (<-chan *T, <-chan error) } -func NewOptionProcessor(inpath string, source Source) (*OptionIngester, error) { +func NewOptionProcessor(inpath string, source *Source) (*OptionIngester, error) { infile, err := os.Open(inpath) if err != nil { return nil, errors.WithMessagef(err, "failed to open input file %s", inpath) -- cgit 1.4.1