From 88ef063c0df5e1ae3018147ffc962ec0163b485a Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Sat, 16 Mar 2024 20:49:40 +0100 Subject: [PATCH] Fix Julia <1.7 compatibility. (#154) --- .buildkite/pipeline.yml | 63 +++++++++++------------------------------ Project.toml | 2 +- src/BugReporting.jl | 12 ++++++-- 3 files changed, 27 insertions(+), 50 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index e54520f..6809ad5 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,56 +1,25 @@ steps: - - - label: "Julia 1.6" + - label: "Julia {{matrix.julia}}" plugins: - JuliaCI/julia#v1: - version: 1.6 - - JuliaCI/julia-test#v1: ~ - agents: - queue: "juliaecosystem" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 15 - - - label: "Julia 1.7" - plugins: - - JuliaCI/julia#v1: - version: 1.7 - - JuliaCI/julia-test#v1: ~ - agents: - queue: "juliaecosystem" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 15 - - - label: "Julia 1.8" - plugins: - - JuliaCI/julia#v1: - version: 1.8 - - JuliaCI/julia-test#v1: ~ - agents: - queue: "juliaecosystem" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 15 - - - label: "Julia 1.9" - plugins: - - JuliaCI/julia#v1: - version: 1.9 - - JuliaCI/julia-test#v1: ~ - agents: - queue: "juliaecosystem" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 15 - - - label: "Julia nightly" - plugins: - - JuliaCI/julia#v1: - version: nightly + version: "{{matrix.julia}}" - JuliaCI/julia-test#v1: ~ agents: queue: "juliaecosystem" os: "linux" arch: "x86_64" timeout_in_minutes: 15 + matrix: + setup: + julia: + - "1.6" + - "1.7" + - "1.8" + - "1.9" + - "1.10" + - "1.11" + - "nightly" + adjustments: + - with: + julia: "nightly" + soft_fail: true diff --git a/Project.toml b/Project.toml index 2cfb329..17b614c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BugReporting" uuid = "bcf9a6e7-4020-453c-b88e-690564246bb8" authors = ["Keno Fischer ", "Tim Besard "] -version = "0.3.4" +version = "0.3.5" [deps] Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" diff --git a/src/BugReporting.jl b/src/BugReporting.jl index cb6c6d6..0b85c12 100644 --- a/src/BugReporting.jl +++ b/src/BugReporting.jl @@ -574,7 +574,11 @@ include("sync_compat.jl") function get_upload_params() # big disclaimer println() - printstyled("### IMPORTANT =============================================================\n", blink = true) + if VERSION >= v"1.7" + printstyled("### IMPORTANT =============================================================\n", blink = true) + else + println("### IMPORTANT =============================================================") + end println(""" You are about to upload a trace directory to a publicly accessible location. Such traces contain any information that was accessed by the traced @@ -584,7 +588,11 @@ function get_upload_params() DO NOT proceed, if you do not wish to make this information publicly available. By proceeding you explicitly agree to waive any privacy interest in the uploaded information.""") - printstyled("### =======================================================================\n", blink = true) + if VERSION >= v"1.7" + printstyled("### =======================================================================\n", blink = true) + else + println("### =======================================================================") + end println() c = Channel()