Skip to content

Commit

Permalink
check that project file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Feb 12, 2024
1 parent bebbf22 commit 86b25e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DepotDelivery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function build(path::String; platform = Base.BinaryPlatforms.HostPlatform())
try
proj_file = joinpath(path, "Project.toml")
proj_file = isfile(proj_file) ? proj_file : joinpath(path, "JuliaProject.toml")
isfile(proj_file) || error("No Project.toml or JuliaProject.toml found in `$path`.")
proj = TOML.parsefile(proj_file)
name = proj["name"]
build_spec = Dict(
Expand Down

0 comments on commit 86b25e9

Please sign in to comment.