about summary refs log tree commit diff stats
path: root/internal/importer/ingest.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-09 20:10:23 +0200
committerAlan Pearce2024-05-09 20:10:23 +0200
commit8ab9adf719090e213bd91b2747986ba6ef94576d (patch)
tree66f2812851f8ac1ff98af39e6863d0907e090c67 /internal/importer/ingest.go
parent631c02ac689b3366987918737e2b09f52fb16dda (diff)
downloadsearchix-8ab9adf719090e213bd91b2747986ba6ef94576d.tar.lz
searchix-8ab9adf719090e213bd91b2747986ba6ef94576d.tar.zst
searchix-8ab9adf719090e213bd91b2747986ba6ef94576d.zip
fix: pointer type mismatch
Diffstat (limited to 'internal/importer/ingest.go')
-rw-r--r--internal/importer/ingest.go4
1 files changed, 2 insertions, 2 deletions
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)