summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2025-01-07 14:16:28 +0800
committer宋文武 <iyzsong@member.fsf.org>2025-01-12 14:18:03 +0800
commite74040b73cd38467e886ed9e2f1e1b351d13c2f2 (patch)
tree7a5f3885b290117802ec40c3d993d861d18596a7 /tests
parent11d0bdad961bb4924ee415607053b02c45817ab8 (diff)
import: git: Do not search pre-release words in tag prefix.
This fixes tags like 'xfce4-dev-tools-4.20.0'. * tests/import-git.scm ("latest-git-tag-version: prefix contains pre-release words"): New test. * guix/import/git.scm (latest-tag): Don't filter out pre-releases tags. (version-mapping): Filter out pre-releases tags from versions. * gnu/packages/xfce.scm (garcon, thunar-archive-plugin, xfce4-dev-tools): Remove FIXME comments for the 'generic-git' updater. Change-Id: I7683200fa451d7fad153aa08fa9d5761688de01d
Diffstat (limited to 'tests')
-rw-r--r--tests/import-git.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/import-git.scm b/tests/import-git.scm
index 20255dedb3..6dd8ad1649 100644
--- a/tests/import-git.scm
+++ b/tests/import-git.scm
@@ -224,4 +224,13 @@
(let ((package (make-package directory "1.0.0")))
(latest-git-tag-version package))))
+(test-equal "latest-git-tag-version: prefix contains pre-release words"
+ "1.0.1"
+ (with-temporary-git-repository directory
+ '((add "a.txt" "A")
+ (commit "First commit")
+ (tag "libdevx-1.0.1" "Release 1.0.1"))
+ (let ((package (make-package directory "1.0.0")))
+ (latest-git-tag-version package))))
+
(test-end "git")