⛩️ Powerful yet Minimal Nix Dependency Manager
flake flakes home-manager nixos go nix dependency dependencies
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(source): move tag fetcher to members

Fuwn 0c846980 dc4aeba0

+2 -2
+2 -2
source.go
··· 34 34 } 35 35 36 36 if source.Type == "git" { 37 - tag, err := fetchLatestGitTag(*source, show) 37 + tag, err := source.fetchLatestGitTag(show) 38 38 39 39 if err != nil { 40 40 return updated, err ··· 83 83 return updated, nil 84 84 } 85 85 86 - func fetchLatestGitTag(source Source, show bool) (string, error) { 86 + func (source *Source) fetchLatestGitTag(show bool) (string, error) { 87 87 if source.Type == "git" { 88 88 repository := "https://github.com/" + strings.Split(source.URL, "/")[3] + "/" + strings.Split(source.URL, "/")[4] 89 89 remotes, err := command("bash", show, "-c", fmt.Sprintf("git ls-remote %s | awk -F'/' '{print $NF}' | sort -V", repository))