Skip to content

Commit

Permalink
Include "build number" in pre-release version
Browse files Browse the repository at this point in the history
Fixes #17330
  • Loading branch information
martinholters committed Jul 26, 2016
1 parent 22d9440 commit 059910e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions base/version.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ A `VersionNumber` object describing which version of Julia is in use. For detail
const VERSION = try
ver = convert(VersionNumber, VERSION_STRING)
if !isempty(ver.prerelease)
build_number = GIT_VERSION_INFO.build_number
if ver == v"0.5.0-pre"
# due to change of reference for counting commits from last tag to last change of VERSION file
build_number += 5578
end
ver = VersionNumber(ver.major, ver.minor, ver.patch, ver.prerelease, (build_number,))
ver = VersionNumber(ver.major, ver.minor, ver.patch, (ver.prerelease..., GIT_VERSION_INFO.build_number,), ver.build)
elseif GIT_VERSION_INFO.build_number != 0
println("WARNING: ignoring non-zero build number for VERSION")
end
Expand Down

0 comments on commit 059910e

Please sign in to comment.