From 53c01e344797b1dc91c2a3d93b8f10eb68014d7d Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 5 Jul 2021 22:11:52 -0400 Subject: [PATCH 01/17] allow control of bounds-check command option --- action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6923474..9d44972 100644 --- a/action.yml +++ b/action.yml @@ -7,6 +7,9 @@ branding: color: 'gray-dark' inputs: + check_bounds: + description: 'Value determining which bounds checking setting to use. Options: yes | no | auto. Default value: yes.' + default: 'yes' coverage: description: 'Value determining whether to test with coverage or not. Options: true | false. Default value: true.' default: 'true' @@ -48,7 +51,12 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - julia_cmd=( julia --check-bounds=yes --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) + check_bounds_opt=' ' + if [[ ${{ inputs.check_bounds }} != 'auto' ]] + then + check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' + fi + julia_cmd=( julia ${{ check_bounds_opt }}--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From 17b98dde42418113e11f7cc8b221e992bb894e60 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 6 Jul 2021 00:05:58 -0400 Subject: [PATCH 02/17] tryfix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9d44972..f02ec7f 100644 --- a/action.yml +++ b/action.yml @@ -56,7 +56,7 @@ runs: then check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' fi - julia_cmd=( julia ${{ check_bounds_opt }}--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) + julia_cmd=( julia ${check_bounds_opt}--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From b650dee67bf32e32bbeb7701284099cc81b7aa59 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Thu, 8 Jul 2021 10:47:41 -0400 Subject: [PATCH 03/17] Update action.yml Co-authored-by: Sascha Mann --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f02ec7f..9e1af0b 100644 --- a/action.yml +++ b/action.yml @@ -56,7 +56,7 @@ runs: then check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' fi - julia_cmd=( julia ${check_bounds_opt}--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) + julia_cmd=( julia "$check_bounds_opt" --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From 8ec6545221af590e9e6405a8621e579ca78be921 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Thu, 8 Jul 2021 12:30:29 -0400 Subject: [PATCH 04/17] Update action.yml Co-authored-by: Sascha Mann --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 9e1af0b..ab7566e 100644 --- a/action.yml +++ b/action.yml @@ -51,10 +51,10 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - check_bounds_opt=' ' + check_bounds_opt='' if [[ ${{ inputs.check_bounds }} != 'auto' ]] then - check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' + check_bounds_opt='--check-bounds=${{ inputs.check_bounds }}' fi julia_cmd=( julia "$check_bounds_opt" --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) From 377a818241fc7452d471c91aec64eff45756f7ad Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 10 Jul 2021 19:16:20 -0400 Subject: [PATCH 05/17] tryfix --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index ab7566e..e0a3151 100644 --- a/action.yml +++ b/action.yml @@ -51,12 +51,12 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - check_bounds_opt='' + check_bounds_opt=' ' if [[ ${{ inputs.check_bounds }} != 'auto' ]] then - check_bounds_opt='--check-bounds=${{ inputs.check_bounds }}' + check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' fi - julia_cmd=( julia "$check_bounds_opt" --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) + julia_cmd=( julia "$check_bounds_opt"--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From aa1ae13ce1c062e0d80a48148a57cfc775cad2d3 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 10 Jul 2021 19:23:28 -0400 Subject: [PATCH 06/17] alternative bash if else approach --- action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index e0a3151..11974b7 100644 --- a/action.yml +++ b/action.yml @@ -51,12 +51,13 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - check_bounds_opt=' ' + julia_cmd='' if [[ ${{ inputs.check_bounds }} != 'auto' ]] then - check_bounds_opt='--check-bounds=${{ inputs.check_bounds }} ' + julia_cmd=( julia --check-bounds=${{ inputs.check_bounds }} --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) + else + julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) fi - julia_cmd=( julia "$check_bounds_opt"--color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From 9c0cb0dc42eba77e3e6a69b01b64e28445d492f5 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 10 Jul 2021 20:22:22 -0400 Subject: [PATCH 07/17] another approach --- action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 11974b7..0fa6935 100644 --- a/action.yml +++ b/action.yml @@ -51,12 +51,10 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - julia_cmd='' + julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) if [[ ${{ inputs.check_bounds }} != 'auto' ]] then julia_cmd=( julia --check-bounds=${{ inputs.check_bounds }} --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) - else - julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) fi # Add the prefix in front of the command if there is one From ca3641726c0fd7e3569ddbf3fc06f65ebf39005d Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 12:44:57 -0400 Subject: [PATCH 08/17] use julia_args approach --- action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 0fa6935..65b139f 100644 --- a/action.yml +++ b/action.yml @@ -51,11 +51,7 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) - if [[ ${{ inputs.check_bounds }} != 'auto' ]] - then - julia_cmd=( julia --check-bounds=${{ inputs.check_bounds }} --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' ) - fi + julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = ["--check-bounds=:(${{ inputs.check_bounds }})"]);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From c12547ff1d0003be9f9e1a3b81f49dcb85fe23e7 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 12:49:40 -0400 Subject: [PATCH 09/17] add julia_args to kwargs func --- kwargs.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kwargs.jl b/kwargs.jl index 804b32b..a8f9b07 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -5,7 +5,8 @@ import Pkg include(joinpath(@__DIR__, "autodetect-dependabot.jl")) function kwargs(; coverage::Bool, - force_latest_compatible_version::Union{Bool, Symbol}) + force_latest_compatible_version::Union{Bool, Symbol}, + julia_args::Union{Cmd, AbstractVector{<:AbstractString}}=``) if !(force_latest_compatible_version isa Bool) && (force_latest_compatible_version != :auto) throw(ArgumentError("Invalid value for force_latest_compatible_version: $(force_latest_compatible_version)")) end @@ -26,6 +27,8 @@ function kwargs(; coverage::Bool, kwargs_dict[:force_latest_compatible_version] = force_latest_compatible_version::Bool end + kwargs_dict[:julia_args] = julia_args + return kwargs_dict end From 41251bbbf0f3d053721581da9a444ca7c3593bf0 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 12:52:09 -0400 Subject: [PATCH 10/17] fix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 65b139f..bafbcd4 100644 --- a/action.yml +++ b/action.yml @@ -51,7 +51,7 @@ runs: JULIA_PKG_SERVER: "" - run: | # The Julia command that will be executed - julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = ["--check-bounds=:(${{ inputs.check_bounds }})"]);Pkg.test(; kwargs...)' ) + julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = ["--check-bounds=${{ inputs.check_bounds }}"]);Pkg.test(; kwargs...)' ) # Add the prefix in front of the command if there is one prefix="${{ inputs.prefix }}" From 513b54d6eed73b59e65e639a963a9bfb4767c92f Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 13:41:51 -0400 Subject: [PATCH 11/17] move julia_args to before return --- kwargs.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kwargs.jl b/kwargs.jl index a8f9b07..4b83059 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -13,6 +13,7 @@ function kwargs(; coverage::Bool, kwargs_dict = Dict{Symbol, Any}() kwargs_dict[:coverage] = coverage + kwargs_dict[:julia_args] = julia_args if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,)) (force_latest_compatible_version != :auto) && @warn("The `force_latest_compatible_version` option requires at least Julia 1.7", VERSION, force_latest_compatible_version) @@ -27,8 +28,6 @@ function kwargs(; coverage::Bool, kwargs_dict[:force_latest_compatible_version] = force_latest_compatible_version::Bool end - kwargs_dict[:julia_args] = julia_args - return kwargs_dict end From 26bfe8e05e2ce913f56d2b0fd28488f9760d584a Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 13:44:21 -0400 Subject: [PATCH 12/17] guard against v1.0 --- kwargs.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kwargs.jl b/kwargs.jl index 4b83059..df51638 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -13,7 +13,10 @@ function kwargs(; coverage::Bool, kwargs_dict = Dict{Symbol, Any}() kwargs_dict[:coverage] = coverage - kwargs_dict[:julia_args] = julia_args + + if VERSION >= v"1.6.0" + kwargs_dict[:julia_args] = julia_args + end if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,)) (force_latest_compatible_version != :auto) && @warn("The `force_latest_compatible_version` option requires at least Julia 1.7", VERSION, force_latest_compatible_version) From f2e7be03fb2b68aedeb2c19e0078a25f39913c87 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 13 Jul 2021 13:54:03 -0400 Subject: [PATCH 13/17] add warning --- kwargs.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kwargs.jl b/kwargs.jl index df51638..89398f8 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -16,6 +16,8 @@ function kwargs(; coverage::Bool, if VERSION >= v"1.6.0" kwargs_dict[:julia_args] = julia_args + elseif julia_args != `` + @warn("The `julia_args` option requires at least Julia 1.6", VERSION, julia_args) end if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,)) From 8442719035ce11cccbc15de031da098bde09c75c Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 13 Jul 2021 15:57:43 -0400 Subject: [PATCH 14/17] Update kwargs.jl Co-authored-by: Sascha Mann --- kwargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwargs.jl b/kwargs.jl index 89398f8..540c900 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -17,7 +17,7 @@ function kwargs(; coverage::Bool, if VERSION >= v"1.6.0" kwargs_dict[:julia_args] = julia_args elseif julia_args != `` - @warn("The `julia_args` option requires at least Julia 1.6", VERSION, julia_args) + println("::warning::The `julia_args` option requires at least Julia 1.6. VERSION=$VERSION, julia_args=$julia_args") end if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,)) From 8603d278d817c173554b9eb0de1bd194e33018d4 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 20 Jul 2021 10:34:58 -0400 Subject: [PATCH 15/17] handle the default state and improve error message --- kwargs.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kwargs.jl b/kwargs.jl index 540c900..cd8709c 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -16,8 +16,10 @@ function kwargs(; coverage::Bool, if VERSION >= v"1.6.0" kwargs_dict[:julia_args] = julia_args - elseif julia_args != `` - println("::warning::The `julia_args` option requires at least Julia 1.6. VERSION=$VERSION, julia_args=$julia_args") + elseif julia_args == ["--check-bounds=yes"] + # silently don't add this default julia_args value as < 1.6 doesn't support julia_args, but it's the default state + else + println("::warning::The Pkg.test bounds checking behavior cannot be changed before Julia 1.6. VERSION=$VERSION, julia_args=$julia_args") end if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,)) From 6c2b82771302f985790f7d5ac697277067896321 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Mon, 13 Dec 2021 19:31:55 -0500 Subject: [PATCH 16/17] Update kwargs.jl Co-authored-by: Chris Foster --- kwargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwargs.jl b/kwargs.jl index cd8709c..d88be08 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -6,7 +6,7 @@ include(joinpath(@__DIR__, "autodetect-dependabot.jl")) function kwargs(; coverage::Bool, force_latest_compatible_version::Union{Bool, Symbol}, - julia_args::Union{Cmd, AbstractVector{<:AbstractString}}=``) + julia_args::AbstractVector{<:AbstractString}}=String[]) if !(force_latest_compatible_version isa Bool) && (force_latest_compatible_version != :auto) throw(ArgumentError("Invalid value for force_latest_compatible_version: $(force_latest_compatible_version)")) end From f281faf0ce0ce3e6ba26ce272248800c5ac45b76 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Wed, 15 Dec 2021 08:56:27 -0500 Subject: [PATCH 17/17] Update kwargs.jl --- kwargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwargs.jl b/kwargs.jl index d88be08..b581768 100644 --- a/kwargs.jl +++ b/kwargs.jl @@ -6,7 +6,7 @@ include(joinpath(@__DIR__, "autodetect-dependabot.jl")) function kwargs(; coverage::Bool, force_latest_compatible_version::Union{Bool, Symbol}, - julia_args::AbstractVector{<:AbstractString}}=String[]) + julia_args::AbstractVector{<:AbstractString}=String[]) if !(force_latest_compatible_version isa Bool) && (force_latest_compatible_version != :auto) throw(ArgumentError("Invalid value for force_latest_compatible_version: $(force_latest_compatible_version)")) end