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
1 file changed, 5 insertions(+), 1 deletion(-)
changed files
M internal/importer/package.go → internal/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, } } }()