diff options
| author | Fuwn <[email protected]> | 2024-10-11 22:11:22 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-11 22:11:26 +0000 |
| commit | 61beb1c0bdc524c9d029d22322ee369ad0a6e28c (patch) | |
| tree | 679f82428b055c63f9b310adb4e77c8d3cd6a412 | |
| parent | feat(yae): remove remote tag restriction (diff) | |
| download | yae-61beb1c0bdc524c9d029d22322ee369ad0a6e28c.tar.xz yae-61beb1c0bdc524c9d029d22322ee369ad0a6e28c.zip | |
feat(yae): allow statically forceable sources
| -rw-r--r-- | sources.go | 1 | ||||
| -rw-r--r-- | yae.go | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -18,6 +18,7 @@ type Source struct { TagPredicate string `json:"tag_predicate,omitempty"` TrimTagPrefix string `json:"trim_tag_prefix,omitempty"` Pinned bool `json:"pinned,omitempty"` + Force bool `json:"force,omitempty"` } func (s *Sources) EnsureLoaded() error { @@ -333,7 +333,7 @@ func updateSource(sources *Sources, name string, source Source, show bool, force return updated, err } - if tag != source.Version || force { + if tag != source.Version || force || source.Force { if show { fmt.Println("updated version for", name, "from", source.Version, "to", tag) } |