fix: nil pointer deference in nixpkgs-channel fetcher
Alan Pearce alan@alanpearce.eu
Mon, 17 Mar 2025 10:23:33 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
M internal/fetcher/nixpkgs-channel.go → internal/fetcher/nixpkgs-channel.go
@@ -47,6 +47,7 @@ func (i *NixpkgsChannelFetcher) FetchIfNeeded( ctx context.Context, sourceMeta *index.SourceMeta, ) (f *FetchedFiles, err errors.E) { + f = &FetchedFiles{} filesToFetch := make([]string, 2) filesToFetch[0] = revisionFilename