diff options
author | Alan Pearce | 2024-05-20 23:31:29 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-20 23:31:29 +0200 |
commit | 8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3 (patch) | |
tree | 33cc9205737c833488991500ae850f97829658fb /internal/importer/package.go | |
parent | 4ac6e917aafa02825bef4f213b2c41fd902a4baf (diff) | |
download | searchix-8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3.tar.lz searchix-8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3.tar.zst searchix-8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3.zip |
refactor: make repository URLs by Repo.Type (currently no change)
"currently no change" because only GitHub repos are supported, but more ready to support other types
Diffstat (limited to 'internal/importer/package.go')
-rw-r--r-- | internal/importer/package.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/importer/package.go b/internal/importer/package.go index 5e9ad26..3fee8d7 100644 --- a/internal/importer/package.go +++ b/internal/importer/package.go @@ -225,6 +225,10 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable pkgSet = "" } + url, err := makeRepoURL(i.source.Repo, subpath, line) + if err != nil { + errs <- err + } results <- &nix.Package{ Name: i.pkg.Name, Attribute: kv.Key, @@ -239,7 +243,7 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable Platforms: i.pkg.Meta.Platforms, Licenses: licenses, Maintainers: maintainers, - Definition: makeRepoURL(i.source.Repo, subpath, line), + Definition: url, } } }() |