aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-12 06:59:15 -0700
committerFuwn <[email protected]>2024-10-12 06:59:15 -0700
commit938a318aa9a2c000bc6d1e2785d70efd035d7502 (patch)
treeda5dd93d423d2eaa81860b18545e3ae1e025c609
parent8f4f831aafefab916db253a6d8e2d5fe6fd3880c (diff)
downloadyae-938a318aa9a2c000bc6d1e2785d70efd035d7502.tar.xz
yae-938a318aa9a2c000bc6d1e2785d70efd035d7502.zip
feat(source): extra output logs
-rw-r--r--source.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/source.go b/source.go
index bd3661c..b62489d 100644
--- a/source.go
+++ b/source.go
@@ -21,10 +21,18 @@ type Source struct {
}
func (source *Source) Update(sources *Sources, name string, show bool, force bool, forcePinned bool) (bool, error) {
+ if show {
+ log.Infof("checking %s", name)
+ }
+
updated := false
if !sources.Exists(name) {
- return updated, fmt.Errorf("source does not exist")
+ if show {
+ log.Warnf("skipped %s: source does not exist", name)
+ }
+
+ return updated, nil
}
if source.Pinned && !forcePinned {
@@ -36,6 +44,8 @@ func (source *Source) Update(sources *Sources, name string, show bool, force boo
}
if source.Type == "git" {
+ log.Debugf("checking %s: remote git tag", name)
+
tag, err := source.fetchLatestGitTag()
if err != nil {