Skip to content

Commit 1d2dd91

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

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
@@ -96,8 +96,25 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
9696
if !isempty(Base.GIT_VERSION_INFO.commit_short)
9797
println(io, "Commit $(Base.GIT_VERSION_INFO.commit_short) ($(Base.GIT_VERSION_INFO.date_string))")
9898
end
99-
if Base.isdebugbuild()
100-
println(io, "DEBUG build")
99+
official_release = Base.TAGGED_RELEASE_BANNER == "Official https://julialang.org/ release"
100+
if Base.isdebugbuild() || !isempty(Base.TAGGED_RELEASE_BANNER) || (Base.GIT_VERSION_INFO.tagged_commit && !official_release)
101+
println(io, "Build Info:")
102+
if Base.isdebugbuild()
103+
println(io, " DEBUG build")
104+
end
105+
if !isempty(Base.TAGGED_RELEASE_BANNER)
106+
println(io, " ", Base.TAGGED_RELEASE_BANNER)
107+
end
108+
if Base.GIT_VERSION_INFO.tagged_commit && !official_release
109+
println(io,
110+
"""
111+
112+
Note: This is an unofficial build, please report bugs to the project
113+
responsible for this build and not to the Julia project unless you can
114+
reproduce the issue using official builds available at https://julialang.org/downloads
115+
"""
116+
)
117+
end
101118
end
102119
println(io, "Platform Info:")
103120
println(io, " OS: ", Sys.iswindows() ? "Windows" : Sys.isapple() ?

0 commit comments

Comments
 (0)