diff options
author | Alan Pearce | 2024-05-20 23:14:40 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-20 23:15:54 +0200 |
commit | e70431d68dced8754e94228753359b2130fd075a (patch) | |
tree | ebed321c0447c0f96214065f2800d2eebb208f7c /internal/importer/package.go | |
parent | 319b79cd7d72c6a49137ef50fa06e807e7a89c2b (diff) | |
download | searchix-e70431d68dced8754e94228753359b2130fd075a.tar.lz searchix-e70431d68dced8754e94228753359b2130fd075a.tar.zst searchix-e70431d68dced8754e94228753359b2130fd075a.zip |
refactor: make declaration/definition URLs from Source.Repo
Diffstat (limited to 'internal/importer/package.go')
-rw-r--r-- | internal/importer/package.go | 3 |
1 files changed, 1 insertions, 2 deletions
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), } } }() |