Skip to content

Commit 57102e2

Browse files
authored
check if manifest file exists instead of if manifest empty (#705)
Theoretically you could compile a package with an empty manifest
1 parent d902a23 commit 57102e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PackageCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function create_pkg_context(project)
6363
error("could not find project at $(repr(project))")
6464
end
6565
ctx = Pkg.Types.Context(env=Pkg.Types.EnvCache(project_toml_path))
66-
if isempty(ctx.env.manifest)
66+
if isfile(ctx.env.manifest_file)
6767
@warn "it is not recommended to create an app/library without a preexisting manifest"
6868
end
6969
return ctx

0 commit comments

Comments
 (0)