Skip to content

Commit 0abc479

Browse files
author
KristofferC
committed
allow subprojects = * as a shortcut for adding all subfolders as subprojects
1 parent 64599f0 commit 0abc479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/loading.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ function base_project(project_file)
616616
base_project_file = env_project_file(base_dir)
617617
base_project_file isa String || return nothing
618618
d = parsed_toml(base_project_file)
619-
subprojects = get(d, "subprojects", nothing)::Union{Vector{String}, Nothing}
619+
subprojects = get(d, "subprojects", nothing)::Union{Vector{String}, Nothing, String}
620620
subprojects === nothing && return nothing
621-
if basename(dirname(project_file)) in subprojects
621+
if (subprojects isa String && subprojects == "*" )|| (subprojects isa Vector && basename(dirname(project_file)) in subprojects)
622622
return base_project_file
623623
end
624624
return nothing

0 commit comments

Comments
 (0)