From e70431d68dced8754e94228753359b2130fd075a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2024 23:14:40 +0200 Subject: refactor: make declaration/definition URLs from Source.Repo --- internal/importer/package.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/importer/package.go') diff --git a/internal/importer/package.go b/internal/importer/package.go index dbc5854..5e9ad26 100644 --- a/internal/importer/package.go +++ b/internal/importer/package.go @@ -115,7 +115,6 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable defer close(errs) defer cancel() - userRepo := i.source.Repo.Owner + "/" + i.source.Repo.Repo outer: for mv := range i.dec.Stream() { var err error @@ -240,7 +239,7 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable Platforms: i.pkg.Meta.Platforms, Licenses: licenses, Maintainers: maintainers, - Definition: makeGitHubFileURL(userRepo, "", subpath, line), + Definition: makeRepoURL(i.source.Repo, subpath, line), } } }() -- cgit 1.4.1