Skip to content

Commit

Permalink
versioninfo(): include build info and unofficial warning (#50635)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 26, 2023
1 parent ff14eaf commit c43e5a1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,25 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
if !isempty(Base.GIT_VERSION_INFO.commit_short)
println(io, "Commit $(Base.GIT_VERSION_INFO.commit_short) ($(Base.GIT_VERSION_INFO.date_string))")
end
if Base.isdebugbuild()
println(io, "DEBUG build")
official_release = Base.TAGGED_RELEASE_BANNER == "Official https://julialang.org/ release"
if Base.isdebugbuild() || !isempty(Base.TAGGED_RELEASE_BANNER) || (Base.GIT_VERSION_INFO.tagged_commit && !official_release)
println(io, "Build Info:")
if Base.isdebugbuild()
println(io, " DEBUG build")
end
if !isempty(Base.TAGGED_RELEASE_BANNER)
println(io, " ", Base.TAGGED_RELEASE_BANNER)
end
if Base.GIT_VERSION_INFO.tagged_commit && !official_release
println(io,
"""
Note: This is an unofficial build, please report bugs to the project
responsible for this build and not to the Julia project unless you can
reproduce the issue using official builds available at https://julialang.org/downloads
"""
)
end
end
println(io, "Platform Info:")
println(io, " OS: ", Sys.iswindows() ? "Windows" : Sys.isapple() ?
Expand Down

0 comments on commit c43e5a1

Please sign in to comment.