From 38a1138793cf3c51ac386f0615f8ead807e0751d Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sat, 22 Jul 2023 11:21:51 -0400 Subject: [PATCH 1/2] versioninfo(): include build info and unofficial warning --- .../InteractiveUtils/src/InteractiveUtils.jl | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/stdlib/InteractiveUtils/src/InteractiveUtils.jl b/stdlib/InteractiveUtils/src/InteractiveUtils.jl index 25f06250c3f8f..9f4d6e95a4873 100644 --- a/stdlib/InteractiveUtils/src/InteractiveUtils.jl +++ b/stdlib/InteractiveUtils/src/InteractiveUtils.jl @@ -99,8 +99,24 @@ 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. + Official builds are available at https://julialang.org/downloads + """ + ) + end end println(io, "Platform Info:") println(io, " OS: ", Sys.iswindows() ? "Windows" : Sys.isapple() ? From c8fc9589087ef1aa225ac830cbb07408f629f37a Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sun, 23 Jul 2023 21:50:31 -0400 Subject: [PATCH 2/2] Update stdlib/InteractiveUtils/src/InteractiveUtils.jl --- stdlib/InteractiveUtils/src/InteractiveUtils.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stdlib/InteractiveUtils/src/InteractiveUtils.jl b/stdlib/InteractiveUtils/src/InteractiveUtils.jl index 9f4d6e95a4873..6cbfc23ac905d 100644 --- a/stdlib/InteractiveUtils/src/InteractiveUtils.jl +++ b/stdlib/InteractiveUtils/src/InteractiveUtils.jl @@ -112,8 +112,9 @@ function versioninfo(io::IO=stdout; verbose::Bool=false) println(io, """ - Note: This is an unofficial build. - Official builds are available at https://julialang.org/downloads + 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