all repos — searchix @ 8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3

Search engine for NixOS, nix-darwin, home-manager and NUR users

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

Alan Pearce
commit

8e8c5c9cc35ef9b3de9b8d43919f27a39a1d75d3

parent

4ac6e917aafa02825bef4f213b2c41fd902a4baf

1 file changed, 5 insertions(+), 1 deletion(-)

changed files
M internal/importer/package.gointernal/importer/package.go
@@ -225,6 +225,10 @@ if !found {
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 @@ MainProgram: i.pkg.Meta.MainProgram,
Platforms: i.pkg.Meta.Platforms, Licenses: licenses, Maintainers: maintainers, - Definition: makeRepoURL(i.source.Repo, subpath, line), + Definition: url, } } }()