diff options
| author | Fuwn <[email protected]> | 2025-05-26 06:21:22 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-26 06:21:22 +0000 |
| commit | 2ab6a72bd2e37f8618fcea04b2ffd45dcaaa3ddb (patch) | |
| tree | e5abf38c0d32a06759c9152e197daa39d2fbf14f | |
| parent | chore(flake): Report Unix platforms support (diff) | |
| download | yae-2ab6a72bd2e37f8618fcea04b2ffd45dcaaa3ddb.tar.xz yae-2ab6a72bd2e37f8618fcea04b2ffd45dcaaa3ddb.zip | |
fix(source): Handle peeled tags
| -rw-r--r-- | internal/yae/source.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/yae/source.go b/internal/yae/source.go index 20d16dc..d18fcce 100644 --- a/internal/yae/source.go +++ b/internal/yae/source.go @@ -118,6 +118,12 @@ func (source *Source) fetchLatestGitTag() (string, error) { refs := strings.Split(remotes, "\n") var latest string + for i := range refs { + if strings.HasSuffix(refs[i], "^{}") { + refs[i] = strings.TrimSuffix(refs[i], "^{}") + } + } + if source.TagPredicate == "" { latest = refs[len(refs)-2] } else { |