Skip to content

Commit 291dc6b

Browse files
IanButterworthKristofferC
authored andcommitted
versioninfo(): include build info and unofficial warning (#50635)
(cherry picked from commit c43e5a1)
1 parent d673a25 commit 291dc6b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

stdlib/InteractiveUtils/src/InteractiveUtils.jl

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,25 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
9999
if !isempty(Base.GIT_VERSION_INFO.commit_short)
100100
println(io, "Commit $(Base.GIT_VERSION_INFO.commit_short) ($(Base.GIT_VERSION_INFO.date_string))")
101101
end
102-
if Base.isdebugbuild()
103-
println(io, "DEBUG build")
102+
official_release = Base.TAGGED_RELEASE_BANNER == "Official https://julialang.org/ release"
103+
if Base.isdebugbuild() || !isempty(Base.TAGGED_RELEASE_BANNER) || (Base.GIT_VERSION_INFO.tagged_commit && !official_release)
104+
println(io, "Build Info:")
105+
if Base.isdebugbuild()
106+
println(io, " DEBUG build")
107+
end
108+
if !isempty(Base.TAGGED_RELEASE_BANNER)
109+
println(io, " ", Base.TAGGED_RELEASE_BANNER)
110+
end
111+
if Base.GIT_VERSION_INFO.tagged_commit && !official_release
112+
println(io,
113+
"""
114+
115+
Note: This is an unofficial build, please report bugs to the project
116+
responsible for this build and not to the Julia project unless you can
117+
reproduce the issue using official builds available at https://julialang.org/downloads
118+
"""
119+
)
120+
end
104121
end
105122
println(io, "Platform Info:")
106123
println(io, " OS: ", Sys.iswindows() ? "Windows" : Sys.isapple() ?

0 commit comments

Comments
 (0)