如何解决让 jgitver 使用标签
在以下场景中,我希望 jgitver 使用版本 4.2.4-rc3-SNAPSHOT
(最后一个轻量级标签 + SNAPSHOT)。然而,这不会发生。
[DEBUG] jgitver calculated version number: 4.2.4-SNAPSHOT
[DEBUG] setting property jgitver.calculated_version with "4.2.4-SNAPSHOT"
[DEBUG] setting property jgitver.dirty with "true"
[DEBUG] setting property jgitver.head_committer_name with "Roberto Morávia"
[DEBUG] setting property jgitver.head_commiter_email with "roberto.moravia@agency"
[DEBUG] setting property jgitver.head_commit_datetime with "Fri Apr 9 15:46:54 2021 +0100"
[DEBUG] setting property jgitver.git_sha1_full with "e4c8f3459a633ba607b0a8bc76eee37323aa2"
[DEBUG] setting property jgitver.git_sha1_8 with "e4c8f345"
[DEBUG] setting property jgitver.branch_name with ""
[DEBUG] setting property jgitver.head_tags with ""
[DEBUG] setting property jgitver.head_annotated_tags with ""
[DEBUG] setting property jgitver.head_lightweight_tags with ""
[DEBUG] setting property jgitver.head_version_tags with ""
[DEBUG] setting property jgitver.head_version_annotated_tags with ""
[DEBUG] setting property jgitver.head_version_lightweight_tags with ""
[DEBUG] setting property jgitver.base_tag with "4.2.4-rc3"
[DEBUG] setting property jgitver.base_tag_type with "LIGHTWEIGHT"
[DEBUG] setting property jgitver.all_tags with "4.2.4-rc3,4.2.4-rc2,4.2.3-RC1,4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_annotated_tags with "4.2.3-RC1,4.0.0"
[DEBUG] setting property jgitver.all_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.all_version_tags with "4.2.4-rc3,4.0.0"
[DEBUG] setting property jgitver.all_version_annotated_tags with "4.2.3,4.0.0"
[DEBUG] setting property jgitver.all_version_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.next_major_version with "5.0.0"
[DEBUG] setting property jgitver.next_minor_version with "4.3.0"
[DEBUG] setting property jgitver.next_patch_version with "4.2.4"
[DEBUG] setting property jgitver.base_version with "4.2.4-rc3"
[DEBUG] setting property jgitver.commit_distance with ""
为什么它不使用标签,我怎样才能让它使用它? 这里的目标是在标记分支后,来自该分支的任何提交都使用该标记,即使签出作为提交哈希也是如此。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。