Skip to content

Commit

Permalink
allow subprojects = * as a shortcut for adding all subfolders as su…
Browse files Browse the repository at this point in the history
…bprojects
  • Loading branch information
KristofferC committed Mar 14, 2024
1 parent 64599f0 commit d04ce6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ function base_project(project_file)
base_project_file = env_project_file(base_dir)
base_project_file isa String || return nothing
d = parsed_toml(base_project_file)
subprojects = get(d, "subprojects", nothing)::Union{Vector{String}, Nothing}
subprojects = get(d, "subprojects", nothing)::Union{Vector{String}, Nothing, String}
subprojects === nothing && return nothing
if basename(dirname(project_file)) in subprojects
if (subprojects isa String && subproject == "*" )|| (subprojects isa Vector && basename(dirname(project_file)) in subprojects)
return base_project_file
end
return nothing
Expand Down

0 comments on commit d04ce6a

Please sign in to comment.