Skip to content

Commit 8e4c03c

Browse files
authored
clarify that project arg should be a path. (#773)
1 parent 7e47b58 commit 8e4c03c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/PackageCompiler.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ end
5858
#############
5959

6060
function create_pkg_context(project)
61+
if isfile(project)
62+
error("`project` should be a path to a directory containing a Project/Manifest, not a file")
63+
end
6164
project_toml_path = Pkg.Types.projectfile_path(project; strict=true)
6265
if project_toml_path === nothing
6366
error("could not find project at $(repr(project))")
@@ -431,7 +434,7 @@ compiler (can also include extra arguments to the compiler, like `-g`).
431434
432435
- `sysimage_path::String`: The path to where the resulting sysimage should be saved.
433436
434-
- `project::String`: The project that should be active when the sysimage is created,
437+
- `project::String`: The project directory that should be active when the sysimage is created,
435438
defaults to the currently active project.
436439
437440
- `precompile_execution_file::Union{String, Vector{String}}`: A file or list of

0 commit comments

Comments
 (0)