File tree Expand file tree Collapse file tree 4 files changed +54
-6
lines changed Expand file tree Collapse file tree 4 files changed +54
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : CompatHelper
2
+ on :
3
+ schedule :
4
+ - cron : 0 0 * * *
5
+ workflow_dispatch :
6
+ permissions :
7
+ contents : write
8
+ pull-requests : write
9
+ jobs :
10
+ CompatHelper :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Check if Julia is already available in the PATH
14
+ id : julia_in_path
15
+ run : which julia
16
+ continue-on-error : true
17
+ - name : Install Julia, but only if it is not already available in the PATH
18
+ uses : julia-actions/setup-julia@v1
19
+ with :
20
+ version : ' 1'
21
+ arch : ${{ runner.arch }}
22
+ if : steps.julia_in_path.outcome != 'success'
23
+ - name : " Add the General registry via Git"
24
+ run : |
25
+ import Pkg
26
+ ENV["JULIA_PKG_SERVER"] = ""
27
+ Pkg.Registry.add("General")
28
+ shell : julia --color=yes {0}
29
+ - name : " Install CompatHelper"
30
+ run : |
31
+ import Pkg
32
+ name = "CompatHelper"
33
+ uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34
+ version = "3"
35
+ Pkg.add(; name, uuid, version)
36
+ shell : julia --color=yes {0}
37
+ - name : " Run CompatHelper"
38
+ run : |
39
+ import CompatHelper
40
+ CompatHelper.main()
41
+ shell : julia --color=yes {0}
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 1
1
name = " TerminalLoggers"
2
2
uuid = " 5d786b92-1e48-4d6f-9151-6b4477ca9bed"
3
3
authors = [
" Chris Foster <[email protected] >" ]
4
- version = " 0.1.5 "
4
+ version = " 0.1.6 "
5
5
6
6
[deps ]
7
7
LeftChildRightSiblingTrees = " 1d6d02ad-be62-4b6b-8a6d-2f90e265016e"
@@ -12,7 +12,7 @@ ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
12
12
UUIDs = " cf7118a7-6976-5b1a-9a39-7adc72f591a4"
13
13
14
14
[compat ]
15
- LeftChildRightSiblingTrees = " 0.1.1"
15
+ LeftChildRightSiblingTrees = " 0.1.1, 0.2 "
16
16
ProgressLogging = " 0.1.1"
17
17
julia = " 1"
18
18
Original file line number Diff line number Diff line change 151
151
function showvalue (io, key, msg)
152
152
if key === :exception && msg isa Vector && length (msg) > 1 && msg[1 ] isa Tuple{Exception,Any}
153
153
if VERSION >= v " 1.2"
154
- # Ugly code path to support passing exception=Base.catch_stack() We
155
- # don't have a useful "Exception Stack" type to look for here until
156
- # https://github.com/JuliaLang/julia/pull/29901 gets unstuck .
154
+ # Ugly code path to support passing exception=Base.catch_stack()
155
+ # `Base.ExceptionStack` was only introduced in Julia 1.7.0-DEV.1106
156
+ # https://github.com/JuliaLang/julia/pull/29901 (dispatched on below) .
157
157
Base. show_exception_stack (io, msg)
158
158
else
159
159
# v1.0 and 1.1 don't have Base.show_exception_stack
Original file line number Diff line number Diff line change 205
205
try
206
206
error (" An exception" )
207
207
catch
208
- Base. catch_stack ()
208
+ if VERSION >= v " 1.7.0-DEV.1106"
209
+ current_exceptions ()
210
+ else
211
+ Base. catch_stack ()
212
+ end
209
213
end
210
214
end
211
215
@test occursin (r" An exception.*Stacktrace.*caused by.*Root cause.*Stacktrace" s ,
You can’t perform that action at this time.
0 commit comments