all repos — searchix @ c51ca7c62e08f43ef9974af35886d30ce54a1f22

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

refactor: use interface to unify Options and Packages

Alan Pearce
commit

c51ca7c62e08f43ef9974af35886d30ce54a1f22

parent

0ef52f2f82c62694c5420f7f6c82fb8c45900d1d

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/importer/utils.gointernal/importer/utils.go
@@ -3,7 +3,7 @@
import ( "fmt" "net/url" - "searchix/internal/options" + "searchix/internal/nix" "github.com/bcicen/jstream" )
@@ -48,12 +48,12 @@ "nix-darwin": "LnL7/nix-darwin",
"home-manager": "nix-community/home-manager", } -func MakeChannelLink(channel string, ref string, subPath string) (*options.Link, error) { +func MakeChannelLink(channel string, ref string, subPath string) (*nix.Link, error) { if channelRepoMap[channel] == "" { return nil, fmt.Errorf("don't know what repository relates to channel <%s>", channel) } - return &options.Link{ + return &nix.Link{ Name: fmt.Sprintf("<%s/%s>", channel, subPath), URL: makeGitHubFileURL(channelRepoMap[channel], ref, subPath, ""), }, nil