Skip to content

Commit fb152de

Browse files
authored
Do not include commit-offset number in VERSION if we are building for a tag. (#36867)
1 parent af39538 commit fb152de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/version.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ A `VersionNumber` object describing which version of Julia is in use. For detail
221221
"""
222222
const VERSION = try
223223
ver = VersionNumber(VERSION_STRING)
224-
if !isempty(ver.prerelease)
224+
if !isempty(ver.prerelease) && !GIT_VERSION_INFO.tagged_commit
225225
if GIT_VERSION_INFO.build_number >= 0
226226
ver = VersionNumber(ver.major, ver.minor, ver.patch, (ver.prerelease..., GIT_VERSION_INFO.build_number), ver.build)
227227
else

0 commit comments

Comments
 (0)