Skip to content

Commit 40098a7

Browse files
authored
Properly plumb kwarg (#964)
1 parent 75f1481 commit 40098a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/AutoBuild.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ supported ones. A few additional keyword arguments are accept:
112112
in a future version of this package. Please use it sparingly.
113113
"""
114114
function build_tarballs(ARGS, src_name, src_version, sources, script,
115-
platforms, products, dependencies; kwargs...)
115+
platforms, products, dependencies;
116+
julia_compat::String = DEFAULT_JULIA_VERSION_SPEC,
117+
kwargs...)
116118
@nospecialize
117119
# See if someone has passed in `--help`, and if so, give them the
118120
# assistance they so clearly long for
@@ -247,11 +249,11 @@ function build_tarballs(ARGS, src_name, src_version, sources, script,
247249
# Dependencies that must be downloaded
248250
dependencies,
249251
)
250-
extra_kwargs = extract_kwargs(kwargs, (:julia_compat, :lazy_artifacts, :init_block))
252+
extra_kwargs = extract_kwargs(kwargs, (:lazy_artifacts, :init_block))
251253

252254
if meta_json_stream !== nothing
253255
# If they've asked for the JSON metadata, by all means, give it to them!
254-
dict = get_meta_json(args...; extra_kwargs...)
256+
dict = get_meta_json(args...; extra_kwargs..., julia_compat=julia_compat)
255257
println(meta_json_stream, JSON.json(dict))
256258

257259
if meta_json_stream !== stdout

0 commit comments

Comments
 (0)