Skip to content

Commit 88ef063

Browse files
authored
Fix Julia <1.7 compatibility. (#154)
1 parent 85b9dee commit 88ef063

File tree

3 files changed

+27
-50
lines changed

3 files changed

+27
-50
lines changed

.buildkite/pipeline.yml

Lines changed: 16 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,25 @@
11
steps:
2-
3-
- label: "Julia 1.6"
2+
- label: "Julia {{matrix.julia}}"
43
plugins:
54
- JuliaCI/julia#v1:
6-
version: 1.6
7-
- JuliaCI/julia-test#v1: ~
8-
agents:
9-
queue: "juliaecosystem"
10-
os: "linux"
11-
arch: "x86_64"
12-
timeout_in_minutes: 15
13-
14-
- label: "Julia 1.7"
15-
plugins:
16-
- JuliaCI/julia#v1:
17-
version: 1.7
18-
- JuliaCI/julia-test#v1: ~
19-
agents:
20-
queue: "juliaecosystem"
21-
os: "linux"
22-
arch: "x86_64"
23-
timeout_in_minutes: 15
24-
25-
- label: "Julia 1.8"
26-
plugins:
27-
- JuliaCI/julia#v1:
28-
version: 1.8
29-
- JuliaCI/julia-test#v1: ~
30-
agents:
31-
queue: "juliaecosystem"
32-
os: "linux"
33-
arch: "x86_64"
34-
timeout_in_minutes: 15
35-
36-
- label: "Julia 1.9"
37-
plugins:
38-
- JuliaCI/julia#v1:
39-
version: 1.9
40-
- JuliaCI/julia-test#v1: ~
41-
agents:
42-
queue: "juliaecosystem"
43-
os: "linux"
44-
arch: "x86_64"
45-
timeout_in_minutes: 15
46-
47-
- label: "Julia nightly"
48-
plugins:
49-
- JuliaCI/julia#v1:
50-
version: nightly
5+
version: "{{matrix.julia}}"
516
- JuliaCI/julia-test#v1: ~
527
agents:
538
queue: "juliaecosystem"
549
os: "linux"
5510
arch: "x86_64"
5611
timeout_in_minutes: 15
12+
matrix:
13+
setup:
14+
julia:
15+
- "1.6"
16+
- "1.7"
17+
- "1.8"
18+
- "1.9"
19+
- "1.10"
20+
- "1.11"
21+
- "nightly"
22+
adjustments:
23+
- with:
24+
julia: "nightly"
25+
soft_fail: true

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BugReporting"
22
uuid = "bcf9a6e7-4020-453c-b88e-690564246bb8"
33
authors = ["Keno Fischer <[email protected]>", "Tim Besard <[email protected]>"]
4-
version = "0.3.4"
4+
version = "0.3.5"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"

src/BugReporting.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,11 @@ include("sync_compat.jl")
574574
function get_upload_params()
575575
# big disclaimer
576576
println()
577-
printstyled("### IMPORTANT =============================================================\n", blink = true)
577+
if VERSION >= v"1.7"
578+
printstyled("### IMPORTANT =============================================================\n", blink = true)
579+
else
580+
println("### IMPORTANT =============================================================")
581+
end
578582
println("""
579583
You are about to upload a trace directory to a publicly accessible location.
580584
Such traces contain any information that was accessed by the traced
@@ -584,7 +588,11 @@ function get_upload_params()
584588
DO NOT proceed, if you do not wish to make this information publicly available.
585589
By proceeding you explicitly agree to waive any privacy interest in the
586590
uploaded information.""")
587-
printstyled("### =======================================================================\n", blink = true)
591+
if VERSION >= v"1.7"
592+
printstyled("### =======================================================================\n", blink = true)
593+
else
594+
println("### =======================================================================")
595+
end
588596
println()
589597

590598
c = Channel()

0 commit comments

Comments
 (0)